mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
pythonPackages.bottleneck: get rid of warnings during tests
This commit is contained in:
parent
dbd3d509e0
commit
0840e427e6
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue