2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
2021-12-26 17:43:05 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, toolz
|
|
|
|
, python
|
2020-10-16 20:44:37 +00:00
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cytoolz";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.11.2";
|
2020-10-16 20:44:37 +00:00
|
|
|
disabled = isPy27 || isPyPy;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "ea23663153806edddce7e4153d1d407d62357c05120a4e8485bddf1bd5ab22b4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ toolz ];
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
# 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
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/pytoolz/cytoolz/";
|
|
|
|
description = "Cython implementation of Toolz: High performance functional utilities";
|
|
|
|
license = "licenses.bsd3";
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|