Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-redis / default.nix
blob588a156d745dc972d8bedaa810fb54888cfb55c8
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , proto-plus
6 , protobuf
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
10 , setuptools
13 buildPythonPackage rec {
14   pname = "google-cloud-redis";
15   version = "2.15.3";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-5qIx5FEHA4z+SY360fba0sp73KOpMTI3ML4Dq3oACo8=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
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/python-redis";
49     changelog = "https://github.com/googleapis/python-redis/blob/v${version}/CHANGELOG.md";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ ];
52   };