Files
nixpkgs/pkgs/development/python-modules/grpcio-status/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
googleapis-common-protos,
grpcio,
protobuf,
pythonOlder,
}:
# 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.76.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "grpcio_status";
inherit version;
hash = "sha256-Jfy/7HTBXRoctdo/q47pZyhS3Balqe61uvfXqZUpQ80=";
};
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 ];
};
}