python312Packages.rising: patch for python 3.12

This commit is contained in:
Gaetan Lepage
2024-09-06 22:31:51 +02:00
parent 2e0c017c27
commit b59af8aadf
@@ -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";
};
}