nixpkgs/pkgs/development/python-modules/google_cloud_language/default.nix
2020-04-10 17:54:53 +01:00

33 lines
696 B
Nix

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