nixpkgs/pkgs/development/python-modules/google_cloud_videointelligence/default.nix

32 lines
689 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-videointelligence";
version = "1.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "382ec37eab72b37571a2a76ad25c9dda51744dbff76ad9a85cc3791fee0c96ef";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Video Intelligence API client library";
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}