nixpkgs/pkgs/development/python-modules/cytoolz/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
903 B
Nix
Raw Normal View History

2017-10-29 11:43:45 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
2021-11-29 21:35:51 +00:00
, pytestCheckHook
, cython
2017-10-29 11:43:45 +00:00
, toolz
, python
, isPy27
2017-10-29 11:43:45 +00:00
}:
buildPythonPackage rec {
pname = "cytoolz";
version = "0.12.0";
disabled = isPy27 || isPyPy;
2017-10-29 11:43:45 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-wQWwX4XgP7zWAkQ3WWjmLkT+eYwVo1Mcki1TEBjSJBI=";
2017-10-29 11:43:45 +00:00
};
nativeBuildInputs = [ cython ];
2017-10-29 11:43:45 +00:00
propagatedBuildInputs = [ toolz ];
2021-11-29 21:35:51 +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
2017-10-29 11:43:45 +00:00
'';
2021-11-29 21:35:51 +00:00
checkInputs = [ pytestCheckHook ];
2017-10-29 11:43:45 +00:00
meta = {
homepage = "https://github.com/pytoolz/cytoolz/";
2017-10-29 11:43:45 +00:00
description = "Cython implementation of Toolz: High performance functional utilities";
license = "licenses.bsd3";
maintainers = with lib.maintainers; [ fridh ];
};
}