forked from mirrors/nixpkgs
pythonPackages.bottleneck: get rid of warnings during tests
This commit is contained in:
parent
dbd3d509e0
commit
0840e427e6
|
@ -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" ""
|
||||
|
|
Loading…
Reference in a new issue