Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 grpcio, 6 protobuf, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "grpcio-testing"; 13 version = "1.65.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 pname = "grpcio_testing"; 20 inherit version; 21 hash = "sha256-AdYhmtubPYxmrGYIbd5LpSu28icVxMzeYO7Qp4RQysE="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace-fail '"grpcio>={version}".format(version=grpc_version.VERSION)' '"grpcio"' 27 ''; 28 29 build-system = [ setuptools ]; 30 31 pythonRelaxDeps = [ 32 "protobuf" 33 ]; 34 35 dependencies = [ 36 grpcio 37 protobuf 38 ]; 39 40 pythonImportsCheck = [ "grpc_testing" ]; 41 42 # Module has no tests 43 doCheck = false; 44 45 meta = with lib; { 46 description = "Testing utilities for gRPC Python"; 47 homepage = "https://grpc.io/"; 48 license = with licenses; [ asl20 ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}