Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 33 lines 757 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, enum34 5, google_api_core 6, mock 7}: 8 9buildPythonPackage rec { 10 pname = "google-cloud-vision"; 11 version = "0.41.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "fd7adcfd8f1bddc19797b25ba3287a4f0cf42e208f330fffb7f1cd125e4d6cd3"; 16 }; 17 18 checkInputs = [ mock ]; 19 propagatedBuildInputs = [ enum34 google_api_core ]; 20 21 # pytest seems to pick up some file which overrides PYTHONPATH 22 checkPhase = '' 23 cd tests/unit 24 python -m unittest discover 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Cloud Vision API API client library"; 29 homepage = https://github.com/GoogleCloudPlatform/google-cloud-python; 30 license = licenses.asl20; 31 maintainers = [ maintainers.costrouc ]; 32 }; 33}