pythonPackages.bottleneck: get rid of warnings during tests

This commit is contained in:
Frederik Rietdijk 2018-08-30 19:43:27 +02:00 committed by Frederik Rietdijk
parent dbd3d509e0
commit 0840e427e6

View File

@ -1,6 +1,7 @@
{ buildPythonPackage
, fetchPypi
, nose
, pytest
, numpy
, python
}:
@ -15,10 +16,10 @@ buildPythonPackage rec {
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
};
checkInputs = [ nose ];
checkInputs = [ pytest nose ];
propagatedBuildInputs = [ numpy ];
checkPhase = ''
nosetests -v $out/${python.sitePackages}
py.test -p no:warnings $out/${python.sitePackages}
'';
postPatch = ''
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""