2021-12-26 17:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google-api-core
|
|
|
|
, pythonOlder
|
2023-01-11 07:51:40 +00:00
|
|
|
, protobuf
|
2021-12-26 17:43:05 +00:00
|
|
|
}:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-access-context-manager";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.1.16";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-+L5Rre6LHpSlc+yzdQpMLSvURLHd412apDes5zwzdgc=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
2023-01-11 07:51:40 +00:00
|
|
|
protobuf
|
|
|
|
] ++ google-api-core.optional-dependencies.grpc;
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
# No tests in repo
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.identity.accesscontextmanager"
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-08-27 14:25:00 +00:00
|
|
|
description = "Protobufs for Google Access Context Manager";
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-access-context-manager";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/googleapis/python-access-context-manager/blob/v${version}/CHANGELOG.md";
|
2020-10-16 20:44:37 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ austinbutler ];
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|