From cb7bf608e75e0b8c448ffd01518da73329734d10 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 5 Jan 2026 23:36:20 +0000 Subject: [PATCH 1/3] python3Packages.atopile: skip failing test --- pkgs/development/python-modules/atopile/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/atopile/default.nix b/pkgs/development/python-modules/atopile/default.nix index 90d41da540e0..0fe4b0fac024 100644 --- a/pkgs/development/python-modules/atopile/default.nix +++ b/pkgs/development/python-modules/atopile/default.nix @@ -185,6 +185,7 @@ buildPythonPackage rec { disabledTests = [ # timeout "test_build_error_logging" + "test_can_evaluate_literals" "test_examples_build" "test_net_names_deterministic" "test_performance_mifs_bus_params" From 0c4da194785170f4fcc0e194c8171ddb33955448 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 5 Jan 2026 23:37:12 +0000 Subject: [PATCH 2/3] python3Packages.atopile: add versionCheckHook --- pkgs/development/python-modules/atopile/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/atopile/default.nix b/pkgs/development/python-modules/atopile/default.nix index 0fe4b0fac024..8ad93b94559b 100644 --- a/pkgs/development/python-modules/atopile/default.nix +++ b/pkgs/development/python-modules/atopile/default.nix @@ -58,6 +58,7 @@ pytest-xdist, hypothesis, writableTmpDirAsHomeHook, + versionCheckHook, }: buildPythonPackage rec { @@ -143,7 +144,9 @@ buildPythonPackage rec { pytest-datafiles pytest-timeout hypothesis + versionCheckHook ]; + versionCheckProgramArg = "--version"; preCheck = '' # do not report worker logs to filee From 84d125d0b66da4c438077c4f9bc606df539882a8 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 5 Jan 2026 23:37:38 +0000 Subject: [PATCH 3/3] python3Packages.atopile: switch to finalAttrs --- pkgs/development/python-modules/atopile/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/atopile/default.nix b/pkgs/development/python-modules/atopile/default.nix index 8ad93b94559b..84740274334a 100644 --- a/pkgs/development/python-modules/atopile/default.nix +++ b/pkgs/development/python-modules/atopile/default.nix @@ -61,7 +61,7 @@ versionCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "atopile"; version = "0.12.4"; pyproject = true; @@ -71,7 +71,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "atopile"; repo = "atopile"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-SB6D1738t3kQJI+V9ClVsByHm6BsLl078N/wDAHJE6E="; }; @@ -228,9 +228,9 @@ buildPythonPackage rec { description = "Design circuit boards with code"; homepage = "https://atopile.io"; downloadPage = "https://github.com/atopile/atopile"; - changelog = "https://github.com/atopile/atopile/releases/tag/${src.tag}"; + changelog = "https://github.com/atopile/atopile/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ sigmanificient ]; mainProgram = "ato"; }; -} +})