Files
nixpkgs/pkgs/development/python-modules/grpcio-status/default.nix
T
2026-02-07 17:08:11 +01:00

47 lines
1002 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
googleapis-common-protos,
grpcio,
protobuf,
}:
# This package should be updated together with the main grpc package and other
# related python grpc packages.
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio-status";
version = "1.78.0";
format = "setuptools";
src = fetchPypi {
pname = "grpcio_status";
inherit version;
hash = "sha256-o0z9KBAb/qhLWqD5NrS0IwGekhOIKQcWavazvdxZ4Yk=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'protobuf>=4.21.6' 'protobuf'
'';
propagatedBuildInputs = [
googleapis-common-protos
grpcio
protobuf
];
# Project thas no tests
doCheck = false;
pythonImportsCheck = [ "grpc_status" ];
meta = {
description = "GRPC Python status proto mapping";
homepage = "https://github.com/grpc/grpc/tree/master/src/python/grpcio_status";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}