From ea61ed3f2136cb15c08305060b868aa64c6c3658 Mon Sep 17 00:00:00 2001 From: Phillip Seeber Date: Mon, 8 Jul 2024 14:50:19 +0200 Subject: [PATCH] haskellPackages.cpython: pin to python 3.11 --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index c63ffeebf1bb..7242ce6b0001 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -3103,4 +3103,10 @@ self: super: { } ) super.push-notify-apn; + # Python 3.12 breaks unicode C-API. Requires an upstream fix in the CPython + # package to support Python > 3.12 API. Thus, should be removed at next CPython + # Hackage release. + cpython = super.cpython.override { + python3 = pkgs.python311; + }; } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super