From 8066986a30d0cb89b1f8d822037c398bed252bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 8 Mar 2026 15:22:13 +0100 Subject: [PATCH 1/2] Revert "python3Packages.pylink-square: 1.6.0 -> 2.0.0" This reverts commit 6dc073f2c927e9fbbf68ff60f8d14923b138e589. This fixes the build of pyocd, the only consumer of pylink-square --- pkgs/development/python-modules/pylink-square/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pylink-square/default.nix b/pkgs/development/python-modules/pylink-square/default.nix index fb88358c0be1..8dbc0145b610 100644 --- a/pkgs/development/python-modules/pylink-square/default.nix +++ b/pkgs/development/python-modules/pylink-square/default.nix @@ -17,14 +17,14 @@ buildPythonPackage rec { pname = "pylink-square"; - version = "2.0.0"; + version = "1.6.0"; pyproject = true; src = fetchFromGitHub { owner = "square"; repo = "pylink"; tag = "v${version}"; - hash = "sha256-QitJGJGgXeSl5RaYW6+VtwOrV9AYDA9+kUHNtopDgVc="; + hash = "sha256-rkkdnpkl9UHcBDjp6lsFXR1zNn7tH1KeTQ7wV+yJ3m0="; }; patches = [ From f33df830a9879818ebc195d1e0572704b7a4755c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 8 Mar 2026 15:26:08 +0100 Subject: [PATCH 2/2] python313Packages.pylink-square: add passthru.tests with pyocd --- pkgs/development/python-modules/pylink-square/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pylink-square/default.nix b/pkgs/development/python-modules/pylink-square/default.nix index 8dbc0145b610..117628ec4283 100644 --- a/pkgs/development/python-modules/pylink-square/default.nix +++ b/pkgs/development/python-modules/pylink-square/default.nix @@ -13,6 +13,7 @@ # tests mock, pytestCheckHook, + pyocd, }: buildPythonPackage rec { @@ -53,6 +54,10 @@ buildPythonPackage rec { "test_set_log_file_success" ]; + passthru.tests = { + inherit pyocd; + }; + meta = { description = "Python interface for the SEGGER J-Link"; homepage = "https://github.com/square/pylink";