mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 14:23:40 +00:00
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
google-api-core,
|
|
proto-plus,
|
|
protobuf,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-language";
|
|
version = "2.20.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "google_cloud_language";
|
|
inherit version;
|
|
hash = "sha256-MoROVi9/Fen4E2GGkTyBhRPh9Aw71oXd1Ew7WyhV3JM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [
|
|
"protobuf"
|
|
];
|
|
|
|
dependencies = [
|
|
google-api-core
|
|
proto-plus
|
|
protobuf
|
|
]
|
|
++ google-api-core.optional-dependencies.grpc;
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"google.cloud.language"
|
|
"google.cloud.language_v1"
|
|
"google.cloud.language_v1beta2"
|
|
];
|
|
|
|
meta = {
|
|
description = "Google Cloud Natural Language API client library";
|
|
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-language";
|
|
changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-language-v${version}/packages/google-cloud-language/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|