depot/third_party/nixpkgs/pkgs/development/python-modules/grpcio-status/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

46 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
googleapis-common-protos,
grpcio,
protobuf,
pythonOlder,
}:
buildPythonPackage rec {
pname = "grpcio-status";
version = "1.64.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "grpcio_status";
inherit version;
hash = "sha256-xQvRTrZQbYWApsVTvqRj18CEmbLA6T9tGGTF6Oq7EGY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'protobuf>=4.21.6' 'protobuf'
'';
propagatedBuildInputs = [
googleapis-common-protos
grpcio
protobuf
];
# Projec thas no tests
doCheck = false;
pythonImportsCheck = [ "grpc_status" ];
meta = with lib; {
description = "GRPC Python status proto mapping";
homepage = "https://github.com/grpc/grpc/tree/master/src/python/grpcio_status";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}