gnu: python-openstacksdk: Update to 4.6.0.

* gnu/packages/openstack.scm (python-openstacksdk): Update to 4.6.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Set them. Refresh 'check phase replacement.
[native-inputs]: Add python-setuptools, python-wheel.

Change-Id: Ia0197b6375beeef3f5e048677e7812665e5c29e0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-24 04:29:57 +02:00 committed by Sharlatan Hellseher
parent 6901133f4b
commit a6225352f7
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -8,6 +8,7 @@
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2022 Tanguy Le Carrour <tanguy@bioneland.org> ;;; Copyright © 2022 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -1245,64 +1246,89 @@ regardless of whether they are bundled or not.")
(define-public python-openstacksdk (define-public python-openstacksdk
(package (package
(name "python-openstacksdk") (name "python-openstacksdk")
(version "0.100.0") (version "4.6.0")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "openstacksdk" version)) (method url-fetch)
(sha256 (uri (pypi-uri "openstacksdk" version))
(base32 (sha256
"0iq7rxw59ibl6xsqh3jw56yg3zfbz3cqgx1239n6xd9iv86mcgq1")))) (base32 "0gbxjz8dg5ar5mgbk896cpq5vgp4j3a1iri8aakaxs9j8xn1czp4"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases (list
(replace 'check #:test-flags
(lambda* (#:key tests? #:allow-other-keys) #~(list "--exclude-regex"
(when tests? (string-join
(with-output-to-file "exclusion-list.txt" (list
(lambda _ ;; tests timing out
(display "test_create_dynamic_large_object"
(string-append "test_create_object_index_rax"
;; tests timing out "test_create_object_skip_checksum"
"test_create_dynamic_large_object$\n" "test_inspect_machine_inspect_failed"
"test_create_object_index_rax$\n" "test_inspect_machine_wait"
"test_create_object_skip_checksum$\n" "test_status_fails_different_attribute"
"test_inspect_machine_inspect_failed$\n" "test_status_match"
"test_inspect_machine_wait$\n" "test_status_match_different_attribute"
"test_status_fails_different_attribute$\n" "test_status_match_with_none"
"test_status_match$\n" "test_wait_for_baremetal_node_lock_locked"
"test_status_match_different_attribute$\n" "test_wait_for_task_error_396"
"test_status_match_with_none$\n" "test_wait_for_task_wait"
"test_wait_for_baremetal_node_lock_locked$\n" ;; XXX: Most fail due to network issues.
"test_wait_for_task_error_396$\n" "test_callback"
"test_wait_for_task_wait$\n")))) "test_callback_without_progress"
(invoke "stestr" "run" "test_create_data"
"--exclude-list" "exclusion-list.txt"))))))) "test_create_image_task"
(native-inputs (list python-ddt "test_create_no_data"
python-hacking "test_delete_autocreated_image_objects"
python-jsonschema "test_delete_firewall_policy"
python-pbr "test_delete_firewall_policy_filters"
python-prometheus-client "test_delete_firewall_rule"
python-requests-mock "test_delete_firewall_rule_filters"
python-statsd "test_delete_image_task"
python-stestr "test_delete_volume_backup_wait"
python-testscenarios "test_get_object"
python-oslo-config "test_ost_version"
python-oslotest)) "test_slo_manifest_fail"
(propagated-inputs (list python-appdirs "test_status"
python-cryptography "test_stream_object"
python-decorator "test_success_not_found")
python-dogpile-cache "|"))
python-importlib-metadata #:phases
python-iso8601 #~(modify-phases %standard-phases
python-jmespath (replace 'check
python-jsonpatch (lambda* (#:key tests? test-flags #:allow-other-keys)
python-keystoneauth1 (when tests?
python-munch (apply invoke "stestr" "run" test-flags)))))))
python-netifaces (native-inputs
python-os-service-types (list python-debtcollector
python-pbr ; run-time dependency actually python-ddt
python-pyyaml python-hacking
python-requestsexceptions)) python-jsonschema
python-oslo-config
python-oslotest
python-pbr
python-prometheus-client
python-requests-mock
python-setuptools
python-statsd
python-stestr
python-testscenarios
python-wheel))
(propagated-inputs
(list python-cryptography
python-decorator
python-dogpile-cache
python-iso8601
python-jmespath
python-jsonpatch
python-keystoneauth1
python-os-service-types
python-pbr
python-platformdirs
python-psutil
python-pyyaml
python-requestsexceptions
python-typing-extensions))
(home-page "https://docs.openstack.org/openstacksdk/latest/") (home-page "https://docs.openstack.org/openstacksdk/latest/")
(synopsis "SDK for building applications to work with OpenStack") (synopsis "SDK for building applications to work with OpenStack")
(description "This package provides a client library for building (description "This package provides a client library for building