1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-api-core, 6 proto-plus, 7 protobuf, 8 pytest-asyncio, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-redis"; 16 version = "2.15.3"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-5qIx5FEHA4z+SY360fba0sp73KOpMTI3ML4Dq3oACo8="; 24 }; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 propagatedBuildInputs = [ 29 google-api-core 30 proto-plus 31 protobuf 32 ] ++ google-api-core.optional-dependencies.grpc; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 pytest-asyncio 37 ]; 38 39 pythonImportsCheck = [ 40 "google.cloud.redis" 41 "google.cloud.redis_v1" 42 "google.cloud.redis_v1beta1" 43 ]; 44 45 meta = with lib; { 46 description = "Google Cloud Memorystore for Redis API client library"; 47 homepage = "https://github.com/googleapis/python-redis"; 48 changelog = "https://github.com/googleapis/python-redis/blob/v${version}/CHANGELOG.md"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ ]; 51 }; 52}