diff options
author | Guillaume Le Vaillant <glv@posteo.net> | 2025-04-22 11:40:02 +0200 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2025-04-22 11:40:02 +0200 |
commit | cb642fb70c1b35cb5ad75e3da4a5c28e5a2af5df (patch) | |
tree | 576ae5425f37c052e2025da065c3e35cb62994c9 | |
parent | 0c4d0a702bede28cf0794dfe491c6a4602b61d44 (diff) |
gnu: python-mox3: Fix build with python 3.11.
* gnu/packages/openstack.scm (python-mox3)[arguments]: Add
'fix-for-python-3.11' phase.
Change-Id: I187c07a837d57fd64fda5e7335246952a9be6e80
-rw-r--r-- | gnu/packages/openstack.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index e78a1f614f..1482ded769 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -199,6 +199,19 @@ guidelines}.") (native-inputs (list python-openstackdocstheme python-sphinx python-subunit python-testrepository python-testtools)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-for-python-3.11' + (lambda _ + ;; The getargspec function has been removed in python 3.11. + (substitute* "mox3/mox.py" + (("self\\._args, varargs, varkw, defaults = inspect\\.getargspec\\(method\\)") + "inspect_result = inspect.getfullargspec(method) + self._args = inspect_result.args + varargs = inspect_result.varargs + varkw = inspect_result.varkw + defaults = inspect_result.defaults"))))))) (home-page "https://www.openstack.org/") (synopsis "Mock object framework for Python") (description |