Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121{ ansicolors, attrs, buildPythonPackage, exceptiongroup, fetchFromGitHub, fetchpatch, fetchpatch2, grpcio, grpcio-tools, grpcio-reflection, jinja2, lib, nix-update-script, mock, openssh, pexpect, psutil, pyserial, pytest, pytestCheckHook, pytest-benchmark, pytest-dependency, pytest-mock, pyudev, pyusb, pyyaml, py-netgear-plus, requests, setuptools, setuptools-scm, util-linux, xmodem,}:
buildPythonPackage (finalAttrs: { pname = "labgrid"; version = "26.0.1"; pyproject = true;
src = fetchFromGitHub { owner = "labgrid-project"; repo = "labgrid"; tag = "v${finalAttrs.version}"; hash = "sha256-rHEWh78DbDF/k0jalNXOisi/v3+ft3aI8oj5iaxJbWY="; };
passthru.updateScript = nix-update-script { };
build-system = [ setuptools setuptools-scm ];
dependencies = [ ansicolors attrs exceptiongroup jinja2 grpcio grpcio-tools grpcio-reflection pexpect pyserial pyudev pyusb pyyaml pytest requests xmodem ];
pythonRemoveDeps = [ "pyserial-labgrid" ];
pythonImportsCheck = [ "labgrid" ];
nativeCheckInputs = [ mock openssh psutil pytestCheckHook pytest-benchmark pytest-mock pytest-dependency util-linux py-netgear-plus ];
disabledTests = [ # flaky, timing sensitive "test_timing"
# flaky, depends on ssh connection "test_argument_device_expansion" "test_argument_file_expansion" "test_local_managedfile"
# flaky: teardown race on x86_64-linux "test_remoteplace_target"
# netns tests require working SSH & Agentwrapper "test_tcp" "test_udp" "test_getaddrinfo" "test_closed_socket" "test_dup" "test_detach" "test_socks" ];
pytestFlags = [ "--benchmark-disable" ];
meta = { description = "Embedded control & testing library"; homepage = "https://github.com/labgrid-project/labgrid"; license = lib.licenses.lgpl21Plus; maintainers = with lib.maintainers; [ emantor ]; platforms = with lib.platforms; linux; };})