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
(method url-fetch) (origin
(uri (pypi-uri "keystoneauth1" version)) (method url-fetch)
(sha256 (uri (pypi-uri "keystoneauth1" version))
(base32 (sha256
"08s36dqxrxqx37sdl28cr7fx2iwr8wfxaa53hwq2dzcx9h25zfvf")))) (base32 "1wwicmgmga7ylyb2a15nh5y29r41vmxhyijs7ynjqjvzkg214vw0"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases ;; XXX: Disable failing test.
(add-after 'unpack 'relax-requirements #:test-flags
(lambda _ #~(list "--exclude-regex" "test_keystoneauth_betamax_fixture")
(substitute* "test-requirements.txt" #:phases
(("hacking[<>!=].*") "hacking\n") #~(modify-phases %standard-phases
;; unused, code-quality checks only (add-after 'unpack 'relax-requirements
(("flake8-.*[<>!=]" line) (string-append "# " line)) (lambda _
(("pycodestyle[<>!=]" line) (string-append "# " line)) (substitute* "test-requirements.txt"
(("bandit[<>!=]" line) (string-append "# " line)) ;; unused, code-quality checks only
(("coverage[<>!=]" line) (string-append "# " line)) (("(hacking|coverage|bandit|reno)[<>!=]"
(("reno[<>!=]" line) (string-append "# " line))))) line)
(add-before 'check 'check-setup (string-append "# " line)))))
(lambda _ (add-before 'check 'check-setup
;; remove code-quality checks (lambda _
(delete-file "keystoneauth1/tests/unit/test_hacking_checks.py"))) ;; remove code-quality checks
(replace 'check (delete-file "keystoneauth1/tests/unit/test_hacking_checks.py")))
(lambda* (#:key tests? #:allow-other-keys) (replace 'check
(when tests? (lambda* (#:key tests? test-flags #:allow-other-keys)
(invoke "stestr" "run"))))))) (when tests?
(propagated-inputs (list python-iso8601 (apply invoke "stestr" "run" test-flags)))))))
python-os-service-types (propagated-inputs
python-requests (list python-iso8601
python-six python-os-service-types-bootstrap
python-stevedore)) python-pbr
(native-inputs (list python-betamax python-requests
python-fixtures python-stevedore
python-hacking python-typing-extensions))
python-lxml (native-inputs
python-oauthlib (list python-betamax
python-oslo-config python-fixtures
python-oslo-utils python-lxml
python-oslotest python-oauthlib
python-pbr python-oslo-config
python-pyyaml python-oslo-utils
python-requests-kerberos python-oslotest
python-requests-mock python-pyyaml
python-stestr python-requests-kerberos
python-testresources python-requests-mock
python-testtools)) python-setuptools
python-stestr
python-testresources
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