depot/third_party/nixpkgs/pkgs/development/python-modules/grpcio-status/default.nix

42 lines
793 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, googleapis-common-protos
, grpcio
, protobuf
, pythonOlder
}:
buildPythonPackage rec {
pname = "grpcio-status";
version = "1.48.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "655af4d0d6e67586cb2ca24c3db5fe08e4e2972d17f295f6b546fa7bd7eef1f6";
};
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 ];
};
}