mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
python3Packages.google_cloud_vision: fix tests
This commit is contained in:
parent
1794b43b0f
commit
0dfbff1d46
|
@ -3,7 +3,6 @@
|
|||
, fetchPypi
|
||||
, enum34
|
||||
, google_api_core
|
||||
, pytest
|
||||
, mock
|
||||
}:
|
||||
|
||||
|
@ -16,11 +15,13 @@ buildPythonPackage rec {
|
|||
sha256 = "f33aea6721d453901ded268dee61a01ab77d4cd215a76edc3cc61b6028299d3e";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock ];
|
||||
checkInputs = [ mock ];
|
||||
propagatedBuildInputs = [ enum34 google_api_core ];
|
||||
|
||||
# pytest seems to pick up some file which overrides PYTHONPATH
|
||||
checkPhase = ''
|
||||
pytest tests/unit
|
||||
cd tests/unit
|
||||
python -m unittest discover
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue