3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.sortedcollections: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 18:09:58 -04:00 committed by Frederik Rietdijk
parent 36d0404ed6
commit bf98e3b446
2 changed files with 28 additions and 19 deletions

View file

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, sortedcontainers
}:
buildPythonPackage rec {
pname = "sortedcollections";
version = "0.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "12dlzln9gyv8smsy2k6d6dmr0ywrpwyrr1cjy649ia5h1g7xdvwa";
};
buildInputs = [ sortedcontainers ];
# wants to test all python versions with tox:
doCheck = false;
meta = with stdenv.lib; {
description = "Python Sorted Collections";
homepage = http://www.grantjenks.com/docs/sortedcollections/;
license = licenses.asl20;
};
}

View file

@ -2797,25 +2797,7 @@ in {
brotlipy = callPackage ../development/python-modules/brotlipy { };
sortedcollections = buildPythonPackage rec {
name = "sortedcollections-${version}";
version = "0.4.2";
src = pkgs.fetchurl {
url = "mirror://pypi/s/sortedcollections/${name}.tar.gz";
sha256 = "12dlzln9gyv8smsy2k6d6dmr0ywrpwyrr1cjy649ia5h1g7xdvwa";
};
buildInputs = [ self.sortedcontainers ];
# wants to test all python versions with tox:
doCheck = false;
meta = {
description = "Python Sorted Collections";
homepage = http://www.grantjenks.com/docs/sortedcollections/;
license = licenses.asl20;
};
};
sortedcollections = callPackage ../development/python-modules/sortedcollections { };
hyperframe = callPackage ../development/python-modules/hyperframe { };