gnu: python-keystoneclient: Update to 5.6.0.

* gnu/packages/openstack.scm (python-keystoneclient): Update to 5.6.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phases 'remove-failing-tests, 'check.
Refresh phase 'relax-requirements.
[native-inputs]: Add python-bandit, python-tempest, python-setuptools,
python-wheel.
[propagated-inputs]: Remove python-babel, python-debtcollector,
python-iso8601, python-netaddr, python-prettytable, python-six.  Add
python-packaging, python-pbr.

Change-Id: I11901435aed3a596bc43f89d328f9d8d7d0c7a1a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-24 04:23:33 +02:00 committed by Sharlatan Hellseher
parent 4b51d84e7b
commit 5837d65acd
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1061,30 +1061,39 @@ process of writing new clients.")
(define-public python-keystoneclient (define-public python-keystoneclient
(package (package
(name "python-keystoneclient") (name "python-keystoneclient")
(version "5.0.0") (version "5.6.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "python-keystoneclient" version)) (uri (pypi-uri "python_keystoneclient" version))
(sha256 (sha256
(base32 (base32
"0gza5fx3xl3l6vrc6pnhbzhipz1fz9h98kwxqp7mmd90pwrxll0g")))) "1rqhxvych2a41dxlizz0qy37vs8jcxxy4kk7khw7c03iqypf47bj"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:tests? #f ; FIXME: Many tests are failing. (list
#:phases (modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-tests
(lambda _
;; XXX: Mostly tests for outdated os-client-config.
(delete-file-recursively "keystoneclient/tests/functional/v3")))
(replace 'check
(lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
(apply invoke "stestr" "run" test-flags))))
(add-after 'unpack 'relax-requirements (add-after 'unpack 'relax-requirements
(lambda _ (lambda _
(substitute* "test-requirements.txt" (substitute* "test-requirements.txt"
;; XXX: Outdated/discontinued.
(("os-client-config[<>!=]" line) (string-append "# " line))
;; unused, code-quality checks only ;; unused, code-quality checks only
(("hacking[<>!=]" line) (string-append "# " line)) (("(hacking|flake8-.*|pycodestyle|coverage|bandit|reno)[<>!=]"
(("flake8-.*[<>!=]" line) (string-append "# " line)) line)
(("pycodestyle[<>!=]" line) (string-append "# " line)) (string-append "# " line))))))))
(("bandit[<>!=]" line) (string-append "# " line))
(("coverage[<>!=]" line) (string-append "# " line))
(("reno[<>!=]" line) (string-append "# " line))))))))
(native-inputs (native-inputs
(list openssl (list openssl
python-bandit
python-fixtures python-fixtures
python-keyring python-keyring
python-lxml python-lxml
@ -1093,24 +1102,23 @@ process of writing new clients.")
python-oslotest python-oslotest
python-pbr python-pbr
python-requests-mock python-requests-mock
python-setuptools
python-stestr python-stestr
python-tempest
python-tempest-lib python-tempest-lib
python-testresources python-testresources
python-testscenarios python-testscenarios
python-testtools)) python-testtools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-babel (list python-keystoneauth1
python-debtcollector
python-iso8601
python-keystoneauth1
python-netaddr
python-oslo-config python-oslo-config
python-oslo-i18n python-oslo-i18n
python-oslo-serialization python-oslo-serialization
python-oslo-utils python-oslo-utils
python-prettytable python-packaging
python-pbr
python-requests python-requests
python-six
python-stevedore)) python-stevedore))
(home-page "https://www.openstack.org/") (home-page "https://www.openstack.org/")
(synopsis "Client Library for OpenStack Identity") (synopsis "Client Library for OpenStack Identity")