at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPyPy, 6 pytestCheckHook, 7 cython, 8 setuptools, 9 toolz, 10 python, 11 isPy27, 12}: 13 14buildPythonPackage rec { 15 pname = "cytoolz"; 16 version = "1.0.1"; 17 pyproject = true; 18 19 disabled = isPy27 || isPyPy; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-icwxYbieG7Ptdjb3TtLlWYT9NVFpBPyHjK4hbkKyx9Y="; 24 }; 25 26 nativeBuildInputs = [ 27 cython 28 setuptools 29 ]; 30 31 propagatedBuildInputs = [ toolz ]; 32 33 # tests are located in cytoolz/tests, however we can't import cytoolz 34 # from $PWD, as it will break relative imports 35 preCheck = '' 36 cd cytoolz 37 export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH 38 ''; 39 40 disabledTests = [ 41 # https://github.com/pytoolz/cytoolz/issues/200 42 "test_inspect_wrapped_property" 43 ]; 44 45 nativeCheckInputs = [ pytestCheckHook ]; 46 47 meta = with lib; { 48 homepage = "https://github.com/pytoolz/cytoolz/"; 49 description = "Cython implementation of Toolz: High performance functional utilities"; 50 license = licenses.bsd3; 51 }; 52}