python3Packages.cytoolz: fix tests

This commit is contained in:
Jonathan Ringer 2021-11-29 13:35:51 -08:00
parent ced4c16f57
commit 7e1f5ca642
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -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";