1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPyPy
5, nose
6, toolz
7, python
8, fetchpatch
9}:
10
11buildPythonPackage rec {
12 pname = "cytoolz";
13 version = "0.9.0.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "84cc06fa40aa310f2df79dd440fc5f84c3e20f01f9f7783fc9c38d0a11ba00e5";
18 };
19
20 patches = [
21 # temporal fix for a test failure: https://github.com/pytoolz/cytoolz/issues/122
22 (fetchpatch {
23 name = "py37.patch";
24 url = https://salsa.debian.org/python-team/modules/python-cytoolz/raw/5ce4158deefc47475d1e76813f900e6c72ddcc6e/debian/patches/py37.patch;
25 sha256 = "1z29y7s5n751q3f74r3bz0f48yg6izvi68hc4pkwcalxmkq5r1n9";
26 })
27 ];
28
29 # Extension types
30 disabled = isPyPy;
31
32 checkInputs = [ nose ];
33 propagatedBuildInputs = [ toolz ];
34
35 # Failing test https://github.com/pytoolz/cytoolz/issues/122
36 checkPhase = ''
37 NOSE_EXCLUDE=test_introspect_builtin_modules nosetests -v $out/${python.sitePackages}
38 '';
39
40 meta = {
41 homepage = https://github.com/pytoolz/cytoolz/;
42 description = "Cython implementation of Toolz: High performance functional utilities";
43 license = "licenses.bsd3";
44 maintainers = with lib.maintainers; [ fridh ];
45 };
46}