nixpkgs/pkgs/development/python-modules/cytoolz/default.nix

36 lines
807 B
Nix
Raw Normal View History

2017-10-29 11:43:45 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, nose
, toolz
, python
}:
buildPythonPackage rec {
pname = "cytoolz";
2018-04-04 18:05:38 +00:00
version = "0.9.0.1";
2017-10-29 11:43:45 +00:00
src = fetchPypi {
inherit pname version;
2018-04-04 18:05:38 +00:00
sha256 = "84cc06fa40aa310f2df79dd440fc5f84c3e20f01f9f7783fc9c38d0a11ba00e5";
2017-10-29 11:43:45 +00:00
};
# Extension types
disabled = isPyPy;
checkInputs = [ nose ];
propagatedBuildInputs = [ toolz ];
# Disable failing test https://github.com/pytoolz/cytoolz/issues/97
checkPhase = ''
NOSE_EXCLUDE=test_curried_exceptions nosetests -v $out/${python.sitePackages}
'';
meta = {
homepage = "https://github.com/pytoolz/cytoolz/";
2017-10-29 11:43:45 +00:00
description = "Cython implementation of Toolz: High performance functional utilities";
license = "licenses.bsd3";
maintainers = with lib.maintainers; [ fridh ];
};
}