depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-redis/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-redis";
version = "2.15.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-5qIx5FEHA4z+SY360fba0sp73KOpMTI3ML4Dq3oACo8=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
google-api-core
proto-plus
protobuf
] ++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"google.cloud.redis"
"google.cloud.redis_v1"
"google.cloud.redis_v1beta1"
];
meta = with lib; {
description = "Google Cloud Memorystore for Redis API client library";
homepage = "https://github.com/googleapis/python-redis";
changelog = "https://github.com/googleapis/python-redis/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}