diff --git a/pkgs/development/python-modules/pycountry/default.nix b/pkgs/development/python-modules/pycountry/default.nix new file mode 100644 index 000000000000..90d573aaaa77 --- /dev/null +++ b/pkgs/development/python-modules/pycountry/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0d17d417ca47..8ca78054564e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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}";