2017-10-29 11:43:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
|
|
|
, nose
|
|
|
|
, toolz
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cytoolz";
|
2017-12-30 11:22:05 +00:00
|
|
|
version = "0.9.0";
|
2017-10-29 11:43:45 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 11:22:05 +00:00
|
|
|
sha256 = "5ebb55855a8bb7800afa58e52408763935527e0305f35600c71b43c86013dec2";
|
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 = "http://github.com/pytoolz/cytoolz/";
|
|
|
|
description = "Cython implementation of Toolz: High performance functional utilities";
|
|
|
|
license = "licenses.bsd3";
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|