nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-api-core, 6 proto-plus, 7 protobuf, 8 pytest-asyncio, 9 pytestCheckHook, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "google-cloud-redis"; 15 version = "2.20.0"; 16 pyproject = true; 17 18 src = fetchPypi { 19 pname = "google_cloud_redis"; 20 inherit version; 21 hash = "sha256-pnLkxqxBj/IM6J73AnYtZ4nD1W/9F8MT6Z+SWiWPHoo="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 google-api-core 28 proto-plus 29 protobuf 30 ] 31 ++ google-api-core.optional-dependencies.grpc; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 pytest-asyncio 36 ]; 37 38 pythonImportsCheck = [ 39 "google.cloud.redis" 40 "google.cloud.redis_v1" 41 "google.cloud.redis_v1beta1" 42 ]; 43 44 meta = { 45 description = "Google Cloud Memorystore for Redis API client library"; 46 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-redis"; 47 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-redis-v${version}/packages/google-cloud-redis/CHANGELOG.md"; 48 license = lib.licenses.asl20; 49 maintainers = [ ]; 50 }; 51}