depot/third_party/nixpkgs/pkgs/development/python-modules/grpcio-testing/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

51 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
grpcio,
protobuf,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "grpcio-testing";
version = "1.66.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "grpcio_testing";
inherit version;
hash = "sha256-pje9w7MSutXZKQd2dP0TS0zJbkm0P39OwQVLR28ZRgQ=";
};
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 = with lib; {
description = "Testing utilities for gRPC Python";
homepage = "https://grpc.io/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}