mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
6a0bd9be26
commit
e5ed9c6c49
1 changed files with 18 additions and 13 deletions
|
@ -182,23 +182,28 @@ guidelines}.")
|
||||||
(uri (pypi-uri "mox3" version))
|
(uri (pypi-uri "mox3" version))
|
||||||
(patches (search-patches "python-mox3-python3.6-compat.patch"))
|
(patches (search-patches "python-mox3-python3.6-compat.patch"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0w58adwv7q9wzvmq9mlrk2asfk73myq9fpwy7mjkzsz3baa95zf5"))))
|
||||||
"0w58adwv7q9wzvmq9mlrk2asfk73myq9fpwy7mjkzsz3baa95zf5"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-fixtures python-pbr))
|
(list python-fixtures python-pbr))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-openstackdocstheme python-sphinx python-subunit
|
(list python-openstackdocstheme
|
||||||
python-testrepository python-testtools))
|
python-setuptools
|
||||||
|
python-sphinx
|
||||||
|
python-subunit
|
||||||
|
python-testrepository
|
||||||
|
python-testtools
|
||||||
|
python-wheel))
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases
|
(list
|
||||||
#~(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'fix-for-python-3.11'
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'unpack 'fix-for-python-3.11
|
||||||
;; The getargspec function has been removed in python 3.11.
|
(lambda _
|
||||||
(substitute* "mox3/mox.py"
|
;; The getargspec function has been removed in python 3.11.
|
||||||
(("self\\._args, varargs, varkw, defaults = inspect\\.getargspec\\(method\\)")
|
(substitute* "mox3/mox.py"
|
||||||
"inspect_result = inspect.getfullargspec(method)
|
(("self\\._args, varargs, varkw, defaults = inspect\\.getargspec\\(method\\)")
|
||||||
|
"inspect_result = inspect.getfullargspec(method)
|
||||||
self._args = inspect_result.args
|
self._args = inspect_result.args
|
||||||
varargs = inspect_result.varargs
|
varargs = inspect_result.varargs
|
||||||
varkw = inspect_result.varkw
|
varkw = inspect_result.varkw
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue