From 9c322da9a1f3a80e4702315239104d72a1985924 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 8 Jan 2026 16:40:49 -0800 Subject: [PATCH 1/3] python3Packages.anyconfig: apply finalAttrs --- pkgs/development/python-modules/anyconfig/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/anyconfig/default.nix b/pkgs/development/python-modules/anyconfig/default.nix index 9cea4cd5891e..b777fca3b2fa 100644 --- a/pkgs/development/python-modules/anyconfig/default.nix +++ b/pkgs/development/python-modules/anyconfig/default.nix @@ -6,13 +6,13 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "anyconfig"; version = "0.14.0"; format = "setuptools"; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-LN9Ur12ujpF0Pe2CxU7Z2Krvo6lyL11F6bX3S2A+AU0="; }; @@ -44,4 +44,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ tboerger ]; }; -} +}) From aed8699425b5e3d6dfb02c809003ad481255c7db Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 8 Jan 2026 16:40:49 -0800 Subject: [PATCH 2/3] python3Packages.anyconfig: build from GitHub --- pkgs/development/python-modules/anyconfig/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/anyconfig/default.nix b/pkgs/development/python-modules/anyconfig/default.nix index b777fca3b2fa..8893fbf1d7b0 100644 --- a/pkgs/development/python-modules/anyconfig/default.nix +++ b/pkgs/development/python-modules/anyconfig/default.nix @@ -1,6 +1,6 @@ { buildPythonPackage, - fetchPypi, + fetchFromGitHub, lib, pytestCheckHook, setuptools, @@ -11,9 +11,11 @@ buildPythonPackage (finalAttrs: { version = "0.14.0"; format = "setuptools"; - src = fetchPypi { - inherit (finalAttrs) pname version; - hash = "sha256-LN9Ur12ujpF0Pe2CxU7Z2Krvo6lyL11F6bX3S2A+AU0="; + src = fetchFromGitHub { + owner = "ssato"; + repo = "python-anyconfig"; + tag = "RELEASE_${finalAttrs.version}"; + hash = "sha256-ngXj/KzErz81T09j6tlV9OYDX3DqW5I8xo/ulLNokpQ="; }; postPatch = '' From eec0fb17836627df7d55144eda7d2c5487429960 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 8 Jan 2026 16:52:20 -0800 Subject: [PATCH 3/3] python3Packages.anyconfig: disable broken tests for python 3.14 --- pkgs/development/python-modules/anyconfig/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/anyconfig/default.nix b/pkgs/development/python-modules/anyconfig/default.nix index 8893fbf1d7b0..3b05879eb277 100644 --- a/pkgs/development/python-modules/anyconfig/default.nix +++ b/pkgs/development/python-modules/anyconfig/default.nix @@ -3,6 +3,7 @@ fetchFromGitHub, lib, pytestCheckHook, + pythonAtLeast, setuptools, }: @@ -29,6 +30,11 @@ buildPythonPackage (finalAttrs: { disabledTests = [ # OSError: /build/anyconfig-0.12.0/tests/res/cli/no_template/10/e/10.* should exists but not "test_runs_for_datasets" + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # Python 3.14: output format has changed + "test_dumps" + "test_dump" ]; disabledTestPaths = [