pythonPackages.bottleneck: get rid of warnings during tests
This commit is contained in:
parent
dbd3d509e0
commit
0840e427e6
@ -1,6 +1,7 @@
|
|||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, nose
|
, nose
|
||||||
|
, pytest
|
||||||
, numpy
|
, numpy
|
||||||
, python
|
, python
|
||||||
}:
|
}:
|
||||||
@ -15,10 +16,10 @@ buildPythonPackage rec {
|
|||||||
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
|
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ pytest nose ];
|
||||||
propagatedBuildInputs = [ numpy ];
|
propagatedBuildInputs = [ numpy ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
nosetests -v $out/${python.sitePackages}
|
py.test -p no:warnings $out/${python.sitePackages}
|
||||||
'';
|
'';
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user