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.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "84cc06fa40aa310f2df79dd440fc5f84c3e20f01f9f7783fc9c38d0a11ba00e5";
17 };
18
19 # Extension types
20 disabled = isPyPy;
21
22 checkInputs = [ nose ];
23 propagatedBuildInputs = [ toolz ];
24
25 # Disable failing test https://github.com/pytoolz/cytoolz/issues/97
26 checkPhase = ''
27 NOSE_EXCLUDE=test_curried_exceptions nosetests -v $out/${python.sitePackages}
28 '';
29
30 meta = {
31 homepage = "https://github.com/pytoolz/cytoolz/";
32 description = "Cython implementation of Toolz: High performance functional utilities";
33 license = "licenses.bsd3";
34 maintainers = with lib.maintainers; [ fridh ];
35 };
36}