From 265ac155f90c054630de226b9c6f2f2187f38ad7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 5 Jan 2026 14:30:12 +0100 Subject: [PATCH 1/4] python314Packages.weasyprint: disable failing tests --- pkgs/development/python-modules/weasyprint/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index 2e34422404f8..0c1bbeda9833 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -97,6 +97,8 @@ buildPythonPackage rec { "test_visibility_3" "test_visibility_4" "test_woff_simple" + # AssertionError + "test_2d_transform" ]; FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; From e022fe1eff911f92caca5454ef7283b3fabfc6b1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 5 Jan 2026 14:44:22 +0100 Subject: [PATCH 2/4] python314Packages.weasyprint: migrate to finalAttrs --- .../python-modules/weasyprint/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index 0c1bbeda9833..5db33be5ab0b 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -30,7 +30,7 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "weasyprint"; version = "66.0"; pyproject = true; @@ -40,7 +40,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Kozea"; repo = "WeasyPrint"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-wmEDVEbikBpOQ5394IBPWQRjWZOLfMzEGxTtq4tt2Tw="; }; @@ -104,16 +104,16 @@ buildPythonPackage rec { FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; # Set env variable explicitly for Darwin, but allow overriding when invoking directly - makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${FONTCONFIG_FILE}" ]; + makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${finalAttrs.FONTCONFIG_FILE}" ]; pythonImportsCheck = [ "weasyprint" ]; meta = { - changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/${src.tag}"; + changelog = "https://github.com/Kozea/WeasyPrint/releases/tag/${finalAttrs.src.tag}"; description = "Converts web documents to PDF"; - mainProgram = "weasyprint"; homepage = "https://weasyprint.org/"; license = lib.licenses.bsd3; + mainProgram = "weasyprint"; teams = [ lib.teams.apm ]; }; -} +}) From daaf2d9fd6b126792fe35c7e864b39df444d577b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 5 Jan 2026 15:00:58 +0100 Subject: [PATCH 3/4] python313Packages.primer3: remove disabled --- pkgs/development/python-modules/primer3/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/primer3/default.nix b/pkgs/development/python-modules/primer3/default.nix index 20c40c2eee43..8ac1a407dbf4 100644 --- a/pkgs/development/python-modules/primer3/default.nix +++ b/pkgs/development/python-modules/primer3/default.nix @@ -8,7 +8,6 @@ fetchFromGitHub, gcc, pytestCheckHook, - pythonOlder, setuptools, }: @@ -17,8 +16,6 @@ buildPythonPackage rec { version = "2.2.0"; pyproject = true; - disabled = pythonOlder "3.7"; - src = fetchFromGitHub { owner = "libnano"; repo = "primer3-py"; @@ -37,6 +34,7 @@ buildPythonPackage rec { click pytestCheckHook ]; + # We are not sure why exactly this is need. It seems `pytestCheckHook` # doesn't find extension modules installed in $out/${python.sitePackages}, # and the tests rely upon them. This was initially reported upstream at From dd58dbaabb394b2afeb1c930fc8481a71e2ded91 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 5 Jan 2026 15:02:04 +0100 Subject: [PATCH 4/4] python313Packages.primer3: migrate to finalAttrs --- pkgs/development/python-modules/primer3/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/primer3/default.nix b/pkgs/development/python-modules/primer3/default.nix index 8ac1a407dbf4..6e59073f1c13 100644 --- a/pkgs/development/python-modules/primer3/default.nix +++ b/pkgs/development/python-modules/primer3/default.nix @@ -11,7 +11,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "primer3"; version = "2.2.0"; pyproject = true; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "libnano"; repo = "primer3-py"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-GrVYYjS/+LZScZETfk7YcSy2yrWc3SPumXvyQeEpFUg="; }; @@ -49,8 +49,8 @@ buildPythonPackage rec { meta = { description = "Oligo analysis and primer design"; homepage = "https://github.com/libnano/primer3-py"; - changelog = "https://github.com/libnano/primer3-py/blob/${src.tag}/CHANGES"; + changelog = "https://github.com/libnano/primer3-py/blob/${finalAttrs.src.tag}/CHANGES"; license = lib.licenses.gpl2Only; maintainers = with lib.maintainers; [ fab ]; }; -} +})