python312Packages.rising: patch for python 3.12
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user