python3Packages.google_cloud_vision: fix tests

This commit is contained in:
Jonathan Ringer 2019-11-06 13:27:15 -08:00 committed by Jon
parent 1794b43b0f
commit 0dfbff1d46

View File

@ -3,7 +3,6 @@
, fetchPypi , fetchPypi
, enum34 , enum34
, google_api_core , google_api_core
, pytest
, mock , mock
}: }:
@ -16,11 +15,13 @@ buildPythonPackage rec {
sha256 = "f33aea6721d453901ded268dee61a01ab77d4cd215a76edc3cc61b6028299d3e"; sha256 = "f33aea6721d453901ded268dee61a01ab77d4cd215a76edc3cc61b6028299d3e";
}; };
checkInputs = [ pytest mock ]; checkInputs = [ mock ];
propagatedBuildInputs = [ enum34 google_api_core ]; propagatedBuildInputs = [ enum34 google_api_core ];
# pytest seems to pick up some file which overrides PYTHONPATH
checkPhase = '' checkPhase = ''
pytest tests/unit cd tests/unit
python -m unittest discover
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {