pythonPackages.ruamel_ordereddict: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 12:57:32 -04:00 committed by Frederik Rietdijk
parent e0d62c2249
commit cbd33011de
2 changed files with 25 additions and 16 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, isPyPy
}:
buildPythonPackage rec {
pname = "ruamel.ordereddict";
version = "0.4.9";
disabled = isPy3k || isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h";
};
meta = with stdenv.lib; {
description = "A version of dict that keeps keys in insertion resp. sorted order";
homepage = https://bitbucket.org/ruamel/ordereddict;
license = licenses.mit;
};
}

View File

@ -3656,22 +3656,7 @@ in {
ruamel_base = callPackage ../development/python-modules/ruamel_base { };
ruamel_ordereddict = buildPythonPackage rec {
name = "ruamel.ordereddict-${version}";
version = "0.4.9";
disabled = isPy3k || isPyPy;
src = pkgs.fetchurl {
url = "mirror://pypi/r/ruamel.ordereddict/${name}.tar.gz";
sha256 = "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h";
};
meta = {
description = "A version of dict that keeps keys in insertion resp. sorted order";
homepage = https://bitbucket.org/ruamel/ordereddict;
license = licenses.mit;
};
};
ruamel_ordereddict = callPackage ../development/python-modules/ruamel_ordereddict { };
typing = callPackage ../development/python-modules/typing { };