2017-10-29 12:43:45 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
|
|
|
, nose
|
|
|
|
, toolz
|
|
|
|
, python
|
2018-12-07 15:07:33 +01:00
|
|
|
, fetchpatch
|
2017-10-29 12:43:45 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cytoolz";
|
2018-04-04 20:05:38 +02:00
|
|
|
version = "0.9.0.1";
|
2017-10-29 12:43:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 20:05:38 +02:00
|
|
|
sha256 = "84cc06fa40aa310f2df79dd440fc5f84c3e20f01f9f7783fc9c38d0a11ba00e5";
|
2017-10-29 12:43:45 +01:00
|
|
|
};
|
|
|
|
|
2018-12-07 15:07:33 +01:00
|
|
|
patches = [
|
|
|
|
# temporal fix for a test failure: https://github.com/pytoolz/cytoolz/issues/122
|
|
|
|
(fetchpatch {
|
|
|
|
name = "py37.patch";
|
|
|
|
url = https://salsa.debian.org/python-team/modules/python-cytoolz/raw/5ce4158deefc47475d1e76813f900e6c72ddcc6e/debian/patches/py37.patch;
|
|
|
|
sha256 = "1z29y7s5n751q3f74r3bz0f48yg6izvi68hc4pkwcalxmkq5r1n9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-10-29 12:43:45 +01:00
|
|
|
# Extension types
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
propagatedBuildInputs = [ toolz ];
|
|
|
|
|
2018-11-24 14:49:48 +01:00
|
|
|
# Failing test https://github.com/pytoolz/cytoolz/issues/122
|
2017-10-29 12:43:45 +01:00
|
|
|
checkPhase = ''
|
2018-11-24 14:49:48 +01:00
|
|
|
NOSE_EXCLUDE=test_introspect_builtin_modules nosetests -v $out/${python.sitePackages}
|
2017-10-29 12:43:45 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2018-12-07 15:07:33 +01:00
|
|
|
homepage = https://github.com/pytoolz/cytoolz/;
|
2017-10-29 12:43:45 +01:00
|
|
|
description = "Cython implementation of Toolz: High performance functional utilities";
|
|
|
|
license = "licenses.bsd3";
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2018-12-07 15:07:33 +01:00
|
|
|
}
|