1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPyPy 5, nose 6, toolz 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "cytoolz"; 12 version = "0.9.0"; 13 name = "${pname}-${version}"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "5ebb55855a8bb7800afa58e52408763935527e0305f35600c71b43c86013dec2"; 18 }; 19 20 # Extension types 21 disabled = isPyPy; 22 23 checkInputs = [ nose ]; 24 propagatedBuildInputs = [ toolz ]; 25 26 # File as accidentally included in release 27 # See https://github.com/pytoolz/cytoolz/issues/116#issuecomment-355770073 28 postPatch = '' 29 rm cytoolz/tests/test_curried_doctests.py 30 ''; 31 32 # Disable failing test https://github.com/pytoolz/cytoolz/issues/97 33 checkPhase = '' 34 NOSE_EXCLUDE=test_curried_exceptions nosetests -v $out/${python.sitePackages} 35 ''; 36 37 meta = { 38 homepage = "http://github.com/pytoolz/cytoolz/"; 39 description = "Cython implementation of Toolz: High performance functional utilities"; 40 license = "licenses.bsd3"; 41 maintainers = with lib.maintainers; [ fridh ]; 42 }; 43}