Files
nixpkgs/pkgs/development/python-modules/cytoolz/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.0 KiB
Nix

{
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;
};
}