depot/third_party/nixpkgs/pkgs/development/python-modules/grpcio-testing/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

51 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
grpcio,
protobuf,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "grpcio-testing";
version = "1.65.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "grpcio_testing";
inherit version;
hash = "sha256-AdYhmtubPYxmrGYIbd5LpSu28icVxMzeYO7Qp4RQysE=";
};
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 ];
};
}