1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: python-tempest-lib: Switch to pyproject.

* gnu/packages/openstack.scm (python-tempest-lib):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
[native-inputs]: Add python-setuptools, python-wheel.
[propagated-inputs]: Remove python-six.

Change-Id: I01cd34b6b5ce70ee93bffc09b470f295820fb743
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves
2025-07-24 04:01:08 +02:00
committed by Sharlatan Hellseher
parent f64d8a651e
commit 16882bd2e7

View File

@@ -485,40 +485,44 @@ OpenStack deployment.")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tempest-lib" version))
(sha256
(base32
"1cpp2vwmawpd29hjsklsps181lq2ah91cl412qvpnz228nf9sqn5"))))
(build-system python-build-system)
(method url-fetch)
(uri (pypi-uri "tempest-lib" version))
(sha256
(base32 "1cpp2vwmawpd29hjsklsps181lq2ah91cl412qvpnz228nf9sqn5"))))
(build-system pyproject-build-system)
(arguments
`(#:tests? #f ; FIXME: Requires oslo.log >= 1.14.0.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "requirements.txt"
(("jsonschema[<>!=].*") "jsonschema\n"))))
(add-before
'check 'pre-check
(lambda _
(substitute* "tempest_lib/tests/cli/test_execute.py"
(("/bin/ls") (which "ls"))))))))
(list
#:tests? #f ; FIXME: Requires a lot of ancient packages.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "requirements.txt"
(("jsonschema[<>!=].*") "jsonschema\n"))))
(add-before 'check 'pre-check
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "tempest_lib/tests/cli/test_execute.py"
(("/bin/ls")
(search-input-file inputs "bin/ls"))))))))
(propagated-inputs
(list python-fixtures
python-httplib2
python-iso8601
python-jsonschema
python-oslo-log
python-paramiko
python-six))
(list python-fixtures
python-httplib2
python-iso8601
python-jsonschema
python-oslo-log
python-paramiko))
(native-inputs
(list python-babel python-mock python-os-testr python-oslotest
python-pbr))
(list python-babel
python-mock
python-os-testr
python-oslotest
python-pbr
python-setuptools
python-wheel))
(home-page "https://www.openstack.org/")
(synopsis "OpenStack functional testing library")
(description
"Tempest-lib is a functional testing library for OpenStack. It provides
"Tempest-lib is a functional testing library for OpenStack. It provides
common features used in Tempest.")
(license asl2.0)))