1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, proto-plus 6, protobuf 7, pytest-asyncio 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "google-cloud-redis"; 14 version = "2.13.2"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-XEhXMDVdlnI9ZK5jfxsiZPNbV8MB7A7yxtMLLwbcoU4="; 22 }; 23 24 propagatedBuildInputs = [ 25 google-api-core 26 proto-plus 27 protobuf 28 ] ++ google-api-core.optional-dependencies.grpc; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 pytest-asyncio 33 ]; 34 35 pythonImportsCheck = [ 36 "google.cloud.redis" 37 "google.cloud.redis_v1" 38 "google.cloud.redis_v1beta1" 39 ]; 40 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 }; 48}