python3Packages.labgrid: 25.0.1 -> 26.0

(cherry picked from commit 0ee2c2c50c)
This commit is contained in:
Rouven Czerwinski 2026-06-10 12:04:14 +02:00 committed by github-actions[bot]
commit 6a7290fd8a

View file

@ -2,6 +2,7 @@
ansicolors,
attrs,
buildPythonPackage,
exceptiongroup,
fetchFromGitHub,
fetchpatch,
fetchpatch2,
@ -23,47 +24,28 @@
pyudev,
pyusb,
pyyaml,
py-netgear-plus,
requests,
setuptools,
setuptools-scm,
util-linux,
xmodem,
}:
buildPythonPackage (finalAttrs: {
pname = "labgrid";
version = "25.0.1";
version = "26.0";
pyproject = true;
src = fetchFromGitHub {
owner = "labgrid-project";
repo = "labgrid";
tag = "v${finalAttrs.version}";
hash = "sha256-cLofkkp2T6Y9nQ5LIS7w9URZlt8DQNN8dm3NnrvcKWY=";
hash = "sha256-SX7FIaSl2sy1hMPEmgGCQQAzXUeFZRw/CrXf/ZHRBDU=";
};
passthru.updateScript = nix-update-script { };
# Remove after package bump
patches = [
(fetchpatch {
url = "https://github.com/Emantor/labgrid/commit/4a66b43882811d50600e37aa39b24ec40398d184.patch";
sha256 = "sha256-eJMB1qFWiDzQXEB4dYOHYMQqCPHXEWCwWjNNY0yTC2s=";
})
(fetchpatch {
url = "https://github.com/Emantor/labgrid/commit/d9933b3ec444c35d98fd41685481ecae8ff28bf4.patch";
sha256 = "sha256-Zx5j+CD6Q89dLmTl5QSKI9M1IcZ97OCjEWtEbG+CKWE=";
})
(fetchpatch {
url = "https://github.com/Emantor/labgrid/commit/f0b672afe1e8976c257f0adff9bf6e7ee9760d6f.patch";
sha256 = "sha256-M7rg+W9SjWDdViWyWe3ERzbUowxzf09c4w1yG3jQGak=";
})
# Fix test_help under python 3.14 argparse colored output.
(fetchpatch2 {
url = "https://github.com/labgrid-project/labgrid/commit/417ace60b9dc043767afb312113a02bcb0807b17.patch?full_index=1";
hash = "sha256-QCkO/PQbosqUldzJiOyF6BHvyzZI06CGs9IxHPPa6Ek=";
})
];
build-system = [
setuptools
setuptools-scm
@ -72,6 +54,7 @@ buildPythonPackage (finalAttrs: {
dependencies = [
ansicolors
attrs
exceptiongroup
jinja2
grpcio
grpcio-tools
@ -97,6 +80,8 @@ buildPythonPackage (finalAttrs: {
pytest-benchmark
pytest-mock
pytest-dependency
util-linux
py-netgear-plus
];
disabledTests = [
@ -110,6 +95,15 @@ buildPythonPackage (finalAttrs: {
# 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" ];