1{ lib, buildPythonPackage, fetchPypi, google-api-core }:
2
3buildPythonPackage rec {
4 pname = "google-cloud-access-context-manager";
5 version = "0.1.8";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "29101f61fa0e07db6385a94da45aef8edb4efde0d2b700fbbf65164c045744a8";
10 };
11
12 postPatch = ''
13 substituteInPlace setup.py \
14 --replace "google-api-core[grpc] >= 1.26.0, < 2.0.0dev" "google-api-core[grpc] >= 1.26.0, < 2.0.1"
15 '';
16
17 propagatedBuildInputs = [ google-api-core ];
18
19 # No tests in repo
20 doCheck = false;
21
22 pythonImportsCheck = [
23 "google.identity.accesscontextmanager"
24 ];
25
26 meta = with lib; {
27 description = "Protobufs for Google Access Context Manager";
28 homepage = "https://github.com/googleapis/python-access-context-manager";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
31 };
32}