2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
grpcio,
|
|
|
|
protobuf,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio-testing";
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "1.66.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "grpcio_testing";
|
|
|
|
inherit version;
|
2024-10-09 16:51:18 +00:00
|
|
|
hash = "sha256-pje9w7MSutXZKQd2dP0TS0zJbkm0P39OwQVLR28ZRgQ=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail '"grpcio>={version}".format(version=grpc_version.VERSION)' '"grpcio"'
|
2023-04-29 16:46:19 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"protobuf"
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-04-29 16:46:19 +00:00
|
|
|
grpcio
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "grpc_testing" ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|