From b59af8aadf76f4b18aaff3df595faaed9d0bb8df Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 3 Sep 2024 00:15:55 +0200 Subject: [PATCH] python312Packages.rising: patch for python 3.12 --- pkgs/development/python-modules/rising/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/rising/default.nix b/pkgs/development/python-modules/rising/default.nix index 2c96fbf92eda..0e876aecbb05 100644 --- a/pkgs/development/python-modules/rising/default.nix +++ b/pkgs/development/python-modules/rising/default.nix @@ -3,6 +3,9 @@ buildPythonPackage, fetchFromGitHub, + # build-system + versioneer, + # dependencies lightning-utilities, numpy, @@ -15,8 +18,6 @@ pytestCheckHook, stdenv, - - pythonAtLeast, }: buildPythonPackage rec { @@ -33,6 +34,13 @@ buildPythonPackage rec { pythonRelaxDeps = [ "lightning-utilities" ]; + # Remove vendorized versioneer (incompatible with python 3.12) + postPatch = '' + rm versioneer.py + ''; + + build-system = [ versioneer ]; + dependencies = [ lightning-utilities numpy @@ -66,7 +74,5 @@ buildPythonPackage rec { homepage = "https://rising.rtfd.io"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ bcdarwin ]; - # AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? - broken = pythonAtLeast "3.12"; }; }