depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-access-context-manager/default.nix
Default email 5e2a688410 Project import generated by Copybara.
GitOrigin-RevId: 5e2018f7b383aeca6824a30c0cd1978c9532a46a
2021-10-06 10:57:05 -03:00

32 lines
884 B
Nix

{ lib, buildPythonPackage, fetchPypi, google-api-core }:
buildPythonPackage rec {
pname = "google-cloud-access-context-manager";
version = "0.1.8";
src = fetchPypi {
inherit pname version;
sha256 = "29101f61fa0e07db6385a94da45aef8edb4efde0d2b700fbbf65164c045744a8";
};
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"
'';
propagatedBuildInputs = [ google-api-core ];
# No tests in repo
doCheck = false;
pythonImportsCheck = [
"google.identity.accesscontextmanager"
];
meta = with lib; {
description = "Protobufs for Google Access Context Manager";
homepage = "https://github.com/googleapis/python-access-context-manager";
license = licenses.asl20;
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
};
}