mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
50 lines
1.0 KiB
Nix
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.67.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "grpcio_status";
|
|
inherit version;
|
|
hash = "sha256-w+Wob6AH6eJjzV+YioqQdITaTKq1godOoqSmCSc0BGs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|