Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-redis / default.nix
blob37b9dcf80958ef875c7407bc63923b00823b507a
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , proto-plus
6 , protobuf
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "google-cloud-redis";
14   version = "2.13.2";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-XEhXMDVdlnI9ZK5jfxsiZPNbV8MB7A7yxtMLLwbcoU4=";
22   };
24   propagatedBuildInputs = [
25     google-api-core
26     proto-plus
27     protobuf
28   ] ++ google-api-core.optional-dependencies.grpc;
30   nativeCheckInputs = [
31     pytestCheckHook
32     pytest-asyncio
33   ];
35   pythonImportsCheck = [
36     "google.cloud.redis"
37     "google.cloud.redis_v1"
38     "google.cloud.redis_v1beta1"
39   ];
41   meta = with lib; {
42     description = "Google Cloud Memorystore for Redis API client library";
43     homepage = "https://github.com/googleapis/python-redis";
44     changelog = "https://github.com/googleapis/python-redis/blob/v${version}/CHANGELOG.md";
45     license = licenses.asl20;
46     maintainers = with maintainers; [ ];
47   };