Files
nixpkgs/pkgs/development/python-modules/grpcio-testing/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
grpcio,
protobuf,
pythonOlder,
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-testing";
version = "1.76.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "grpcio_testing";
inherit version;
hash = "sha256-loQmPvqyo9xRFBeDOx5qB1hZfic6Ibbb8XwXAizvfCQ=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail '"grpcio>={version}".format(version=grpc_version.VERSION)' '"grpcio"'
'';
build-system = [ setuptools ];
pythonRelaxDeps = [
"protobuf"
];
dependencies = [
grpcio
protobuf
];
pythonImportsCheck = [ "grpc_testing" ];
# Module has no tests
doCheck = false;
meta = {
description = "Testing utilities for gRPC Python";
homepage = "https://grpc.io/";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}