diff options
| author | Jonathan Ringer <jonringer117@gmail.com> | 2021-11-29 13:35:51 -0800 |
|---|---|---|
| committer | Jonathan Ringer <jonringer117@gmail.com> | 2021-11-30 18:52:54 -0800 |
| commit | 7e1f5ca64273139acccc0e951c82c9d1e65d73ed (patch) | |
| tree | 0cb5ebfe050a29c6414d91dc833acf7de343a149 | |
| parent | python3Packages.imageio: fix tests (diff) | |
| download | nixpkgs-7e1f5ca64273139acccc0e951c82c9d1e65d73ed.tar.gz | |
python3Packages.cytoolz: fix tests
| -rw-r--r-- | pkgs/development/python-modules/cytoolz/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/cytoolz/default.nix b/pkgs/development/python-modules/cytoolz/default.nix index 70c7e6f3c9fa..9b1b9ecb8da6 100644 --- a/pkgs/development/python-modules/cytoolz/default.nix +++ b/pkgs/development/python-modules/cytoolz/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchPypi , isPyPy -, nose +, pytestCheckHook , toolz , python , isPy27 @@ -18,13 +18,17 @@ buildPythonPackage rec { sha256 = "ea23663153806edddce7e4153d1d407d62357c05120a4e8485bddf1bd5ab22b4"; }; - checkInputs = [ nose ]; propagatedBuildInputs = [ toolz ]; - checkPhase = '' - nosetests -v $out/${python.sitePackages} + # 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 ''; + checkInputs = [ pytestCheckHook ]; + meta = { homepage = "https://github.com/pytoolz/cytoolz/"; description = "Cython implementation of Toolz: High performance functional utilities"; |
