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>
56 lines
957 B
Nix
56 lines
957 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
protobuf,
|
|
grpcio,
|
|
setuptools,
|
|
}:
|
|
|
|
# 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-tools";
|
|
version = "1.76.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "grpcio_tools";
|
|
inherit version;
|
|
hash = "sha256-zoAWm15q3z6DAvPrtssMOp8ICJEzq8pLdq1n91H1rYg=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [
|
|
"protobuf"
|
|
"grpcio"
|
|
];
|
|
|
|
dependencies = [
|
|
protobuf
|
|
grpcio
|
|
setuptools
|
|
];
|
|
|
|
# no tests in the package
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "grpc_tools" ];
|
|
|
|
meta = {
|
|
description = "Protobuf code generator for gRPC";
|
|
license = lib.licenses.asl20;
|
|
homepage = "https://grpc.io/grpc/python/";
|
|
maintainers = [ ];
|
|
};
|
|
}
|