nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 googleapis-common-protos,
6 grpcio,
7 protobuf,
8}:
9
10# This package should be updated together with the main grpc package and other
11# related python grpc packages.
12# nixpkgs-update: no auto update
13buildPythonPackage rec {
14 pname = "grpcio-status";
15 version = "1.76.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 pname = "grpcio_status";
20 inherit version;
21 hash = "sha256-Jfy/7HTBXRoctdo/q47pZyhS3Balqe61uvfXqZUpQ80=";
22 };
23
24 postPatch = ''
25 substituteInPlace setup.py \
26 --replace 'protobuf>=4.21.6' 'protobuf'
27 '';
28
29 propagatedBuildInputs = [
30 googleapis-common-protos
31 grpcio
32 protobuf
33 ];
34
35 # Project thas no tests
36 doCheck = false;
37
38 pythonImportsCheck = [ "grpc_status" ];
39
40 meta = {
41 description = "GRPC Python status proto mapping";
42 homepage = "https://github.com/grpc/grpc/tree/master/src/python/grpcio_status";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [ fab ];
45 };
46}