gnu: python-oslosphinx: Switch to pyproject.

* gnu/packages/openstack.scm (python-oslosphinx):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Improve style.
[native-inputs]: Add python-setuptools, python-wheel.

Change-Id: Ic03946b922712821b8de0654b17fc3749fd54f0d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-23 22:07:17 +02:00 committed by Sharlatan Hellseher
parent dfb49bb8ed
commit db5bd02c93
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -674,23 +674,27 @@ and building documentation from them.")
(method url-fetch) (method url-fetch)
(uri (pypi-uri "oslosphinx" version)) (uri (pypi-uri "oslosphinx" version))
(sha256 (sha256
(base32 (base32 "1xm41857vzrzjmnyi6bqirg4i5qa61v7wxcsdc4q1nzgr3ndgz5k"))))
"1xm41857vzrzjmnyi6bqirg4i5qa61v7wxcsdc4q1nzgr3ndgz5k")))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'relax-requirements #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'relax-requirements
(substitute* "test-requirements.txt" (lambda _
(("hacking!=0.13.0,<0.14,>=0.12.0") (substitute* "test-requirements.txt"
"hacking!=0.13.0,>=0.12.0")) (("hacking.*")
#t))))) "hacking")))))))
(propagated-inputs (propagated-inputs
(list python-requests)) (list python-requests))
(native-inputs (native-inputs
(list python-hacking python-openstackdocstheme python-pbr (list python-hacking
python-reno python-sphinx)) python-openstackdocstheme
python-pbr
python-reno
python-setuptools
python-sphinx
python-wheel))
(home-page "https://www.openstack.org/") (home-page "https://www.openstack.org/")
(synopsis "OpenStack sphinx extensions and theme") (synopsis "OpenStack sphinx extensions and theme")
(description "This package provides themes and extensions for Sphinx (description "This package provides themes and extensions for Sphinx