From 66865ce9ad6c7b5de5f337a2c4617fc8184f18d7 Mon Sep 17 00:00:00 2001 From: GraysonTinker Date: Sat, 4 Apr 2026 20:41:22 -0700 Subject: [PATCH] python3Packages.logical-unification: fix build on python 3.14 --- .../logical-unification/default.nix | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/logical-unification/default.nix b/pkgs/development/python-modules/logical-unification/default.nix index 3363a64e862f..55801dc2819f 100644 --- a/pkgs/development/python-modules/logical-unification/default.nix +++ b/pkgs/development/python-modules/logical-unification/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, - pythonAtLeast, + fetchpatch, toolz, multipledispatch, py, @@ -13,7 +13,7 @@ setuptools-scm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "logical-unification"; version = "0.4.7"; pyproject = true; @@ -21,10 +21,17 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pythological"; repo = "unification"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-m1wB7WOGb/io4Z7Zfl/rckh08j6IKSiiwFKMvl5UzHg="; }; + patches = [ + (fetchpatch { + url = "https://github.com/pythological/unification/pull/49.patch"; + hash = "sha256-0y1DHxxjQ19upOlstf/zihP1b6iQ4A/WqyWNpirW/kg="; + }) + ]; + build-system = [ setuptools setuptools-scm @@ -42,11 +49,6 @@ buildPythonPackage rec { pytest-benchmark # Needed for the `--benchmark-skip` flag ]; - disabledTests = lib.optionals (pythonAtLeast "3.12") [ - # Failed: DID NOT RAISE - "test_reify_recursion_limit" - ]; - pytestFlags = [ "--benchmark-skip" "--html=testing-report.html" @@ -62,4 +64,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ Etjean ]; }; -} +})