diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-07-23 23:17:59 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-27 00:25:50 +0100 |
| commit | e5ed9c6c49e58f226a22cceb30c15059bbdf7a0c (patch) | |
| tree | d61935e47bbf997934e19b655e36541427e2bcf0 | |
| parent | 6a0bd9be26080a4a6a26586a535df31ccdc1b74a (diff) | |
gnu: python-mox3: Switch to pyproject.
* gnu/packages/openstack.scm (python-mox3):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
[native-inputs]: Add python-setuptools, python-wheel.
Change-Id: I2c9c7502897c335c4f950afed30ceb856b2ad20d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/openstack.scm | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 585cf9c883..3056e54ae8 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -182,23 +182,28 @@ guidelines}.") (uri (pypi-uri "mox3" version)) (patches (search-patches "python-mox3-python3.6-compat.patch")) (sha256 - (base32 - "0w58adwv7q9wzvmq9mlrk2asfk73myq9fpwy7mjkzsz3baa95zf5")))) - (build-system python-build-system) + (base32 "0w58adwv7q9wzvmq9mlrk2asfk73myq9fpwy7mjkzsz3baa95zf5")))) + (build-system pyproject-build-system) (propagated-inputs (list python-fixtures python-pbr)) (native-inputs - (list python-openstackdocstheme python-sphinx python-subunit - python-testrepository python-testtools)) + (list python-openstackdocstheme + python-setuptools + python-sphinx + python-subunit + python-testrepository + python-testtools + python-wheel)) (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) + (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 |
