pythonPackages.toolz: create Python 2 package
This commit is contained in:
parent
a64f9cfab4
commit
c1cf4abe6d
28
pkgs/development/python-modules/toolz/2.nix
Normal file
28
pkgs/development/python-modules/toolz/2.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "toolz";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4560";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests toolz/tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pytoolz/toolz";
|
||||
description = "List processing tools and functional utilities";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
};
|
||||
}
|
@ -7189,7 +7189,10 @@ in {
|
||||
|
||||
tomlkit = callPackage ../development/python-modules/tomlkit { };
|
||||
|
||||
toolz = callPackage ../development/python-modules/toolz { };
|
||||
toolz = if isPy3k then
|
||||
callPackage ../development/python-modules/toolz { }
|
||||
else
|
||||
callPackage ../development/python-modules/toolz/2.nix { };
|
||||
|
||||
toposort = callPackage ../development/python-modules/toposort { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user