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"; }; }