From f15ac02068f9951e906a366ac56dfe3f61234b10 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 13 Sep 2024 14:53:02 +0200 Subject: [PATCH] python3Packages.poetry-core: backport test fix for Python 3.12.6 --- pkgs/development/python-modules/poetry-core/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/poetry-core/default.nix b/pkgs/development/python-modules/poetry-core/default.nix index fec055b429bda..17a49034d20d0 100644 --- a/pkgs/development/python-modules/poetry-core/default.nix +++ b/pkgs/development/python-modules/poetry-core/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, pythonOlder, build, git, @@ -27,6 +28,14 @@ buildPythonPackage rec { hash = "sha256-vvwKbzGlvv2LTbXfJxQVM3nUXFGntgJxsku6cbRxCzw="; }; + patches = [ + (fetchpatch { + name = "python-3.12.6.patch"; + url = "https://github.com/python-poetry/poetry-core/commit/bd1ce358dec403c66e62176b11bfad77a51aacfd.patch"; + hash = "sha256-dl2xTsn0nNAGJKNmgNPXlaeJOs1gNfDeQMJnD7EnKB4="; + }) + ]; + nativeCheckInputs = [ build git