libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-redis / default.nix
blob5be11fe011b85972a24b5debf44eb37c6425f185
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   google-api-core,
6   proto-plus,
7   protobuf,
8   pytest-asyncio,
9   pytestCheckHook,
10   pythonOlder,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "google-cloud-redis";
16   version = "2.16.1";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     pname = "google_cloud_redis";
23     inherit version;
24     hash = "sha256-vB3Ht3k5evXO77NrRVkeUAj4oWNdpvZOHpm8OKgqzpY=";
25   };
27   build-system = [ setuptools ];
29   dependencies = [
30     google-api-core
31     proto-plus
32     protobuf
33   ] ++ google-api-core.optional-dependencies.grpc;
35   nativeCheckInputs = [
36     pytestCheckHook
37     pytest-asyncio
38   ];
40   pythonImportsCheck = [
41     "google.cloud.redis"
42     "google.cloud.redis_v1"
43     "google.cloud.redis_v1beta1"
44   ];
46   meta = with lib; {
47     description = "Google Cloud Memorystore for Redis API client library";
48     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-redis";
49     changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-redis-v${version}/packages/google-cloud-redis/CHANGELOG.md";
50     license = licenses.asl20;
51     maintainers = [ ];
52   };