gnu: python-keystoneauth1: Update to 5.11.1.

* gnu/packages/openstack.scm (python-keystoneauth1): Update to 5.11.1.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Refresh them.
[propagated-inputs]: Replace python-os-service-types by
python-os-service-types-bootstrap. Add python-pbr,
python-typing-extensions.
[native-inputs]: Add python-setuptools, python-testtools,
python-wheel.  Remove python-pbr.

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

View file

@ -997,55 +997,59 @@ handling.")
(define-public python-keystoneauth1 (define-public python-keystoneauth1
(package (package
(name "python-keystoneauth1") (name "python-keystoneauth1")
(version "5.0.0") (version "5.11.1")
(source (origin (source
(origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "keystoneauth1" version)) (uri (pypi-uri "keystoneauth1" version))
(sha256 (sha256
(base32 (base32 "1wwicmgmga7ylyb2a15nh5y29r41vmxhyijs7ynjqjvzkg214vw0"))))
"08s36dqxrxqx37sdl28cr7fx2iwr8wfxaa53hwq2dzcx9h25zfvf")))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases ;; XXX: Disable failing test.
#:test-flags
#~(list "--exclude-regex" "test_keystoneauth_betamax_fixture")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements (add-after 'unpack 'relax-requirements
(lambda _ (lambda _
(substitute* "test-requirements.txt" (substitute* "test-requirements.txt"
(("hacking[<>!=].*") "hacking\n")
;; unused, code-quality checks only ;; unused, code-quality checks only
(("flake8-.*[<>!=]" line) (string-append "# " line)) (("(hacking|coverage|bandit|reno)[<>!=]"
(("pycodestyle[<>!=]" line) (string-append "# " line)) line)
(("bandit[<>!=]" line) (string-append "# " line)) (string-append "# " line)))))
(("coverage[<>!=]" line) (string-append "# " line))
(("reno[<>!=]" line) (string-append "# " line)))))
(add-before 'check 'check-setup (add-before 'check 'check-setup
(lambda _ (lambda _
;; remove code-quality checks ;; remove code-quality checks
(delete-file "keystoneauth1/tests/unit/test_hacking_checks.py"))) (delete-file "keystoneauth1/tests/unit/test_hacking_checks.py")))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests? (when tests?
(invoke "stestr" "run"))))))) (apply invoke "stestr" "run" test-flags)))))))
(propagated-inputs (list python-iso8601 (propagated-inputs
python-os-service-types (list python-iso8601
python-os-service-types-bootstrap
python-pbr
python-requests python-requests
python-six python-stevedore
python-stevedore)) python-typing-extensions))
(native-inputs (list python-betamax (native-inputs
(list python-betamax
python-fixtures python-fixtures
python-hacking
python-lxml python-lxml
python-oauthlib python-oauthlib
python-oslo-config python-oslo-config
python-oslo-utils python-oslo-utils
python-oslotest python-oslotest
python-pbr
python-pyyaml python-pyyaml
python-requests-kerberos python-requests-kerberos
python-requests-mock python-requests-mock
python-setuptools
python-stestr python-stestr
python-testresources python-testresources
python-testtools)) python-testtools
python-wheel))
(home-page "https://docs.openstack.org/keystoneauth/latest/") (home-page "https://docs.openstack.org/keystoneauth/latest/")
(synopsis "Authentication Library for OpenStack Identity") (synopsis "Authentication Library for OpenStack Identity")
(description "Keystoneauth provides a standard way to do authentication (description "Keystoneauth provides a standard way to do authentication