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

32 lines
691 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-videointelligence";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "02a91a25b3890a743bde21e03abddf11dcaf7966cc44f09bc8d507f2e28f15fa";
};
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 ];
};
}