567e8dfd8e
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>
48 lines
939 B
Nix
48 lines
939 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
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-reflection";
|
|
version = "1.76.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "grpcio_reflection";
|
|
inherit version;
|
|
hash = "sha256-4OfkmSHC7pUeXd/wvbrL0awacIiL62HVZ/PQG3md7LE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [
|
|
"grpcio"
|
|
"protobuf"
|
|
];
|
|
|
|
dependencies = [
|
|
grpcio
|
|
protobuf
|
|
];
|
|
|
|
pythonImportsCheck = [ "grpc_reflection" ];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Standard Protobuf Reflection Service for gRPC";
|
|
homepage = "https://pypi.org/project/grpcio-reflection";
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [ happysalada ];
|
|
};
|
|
}
|