pythonPackages.pycountry: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 15:11:35 -04:00 committed by Frederik Rietdijk
parent abc0996dd0
commit 3e1f1f76bb
2 changed files with 23 additions and 9 deletions

View file

@ -0,0 +1,22 @@
{ stdenv
, buildPythonPackage
, fetchPypi
,
}:
buildPythonPackage rec {
pname = "pycountry";
version = "1.17";
src = fetchPypi {
inherit pname version;
sha256 = "1qvhq0c9xsh6d4apcvjphfzl6xnwhnk4jvhr8x2fdfnmb034lc26";
};
meta = with stdenv.lib; {
homepage = https://bitbucket.org/flyingcircus/pycountry;
description = "ISO country, subdivision, language, currency and script definitions and their translations";
license = licenses.lgpl2;
};
}

View file

@ -3035,15 +3035,7 @@ in {
FormEncode = callPackage ../development/python-modules/FormEncode { };
pycountry = buildPythonPackage rec {
name = "pycountry-${version}";
version = "1.17";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pycountry/${name}.tar.gz";
sha256 = "1qvhq0c9xsh6d4apcvjphfzl6xnwhnk4jvhr8x2fdfnmb034lc26";
};
};
pycountry = callPackage ../development/python-modules/pycountry { };
nine = buildPythonPackage rec {
name = "nine-${version}";