Files
nixpkgs/pkgs/development/python-modules/grpcio-testing/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
grpcio,
protobuf,
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;
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 ];
};
}