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