pythonPackages.pycountry: refactor move to python-modules
This commit is contained in:
parent
abc0996dd0
commit
3e1f1f76bb
22
pkgs/development/python-modules/pycountry/default.nix
Normal file
22
pkgs/development/python-modules/pycountry/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user