2021-08-27 14:25:00 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, google-api-core }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-access-context-manager";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "0.1.7";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "02adf212c8d280298ffe03a0c91743618693ec394b42cbb85b4a29f8d9544afa";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "google-api-core[grpc] >= 1.26.0, < 2.0.0dev" "google-api-core[grpc] >= 1.26.0, < 2.0.1"
|
|
|
|
'';
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core ];
|
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";
|
|
|
|
license = licenses.asl20;
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|