From f1abe316770ad43f65cf5d79a490a97749388256 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Thu, 24 Jul 2025 03:56:59 +0200 Subject: [PATCH] gnu: python-stevedore: Update to 5.4.1. * gnu/packages/openstack.scm (python-stevedore): Update to 5.4.1. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Remove 'use-pbr-3, add 'relax-requirements and 'check replacement. [native-inputs]: Add python-coverage, python-setuptools, python-sphinx, python-stestr, python-wheel. Change-Id: I03d5ca986db923ceabe007d45448d60a9650efc1 Signed-off-by: Sharlatan Hellseher --- gnu/packages/openstack.scm | 39 ++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 017372310cfcbb8f41595a0c45489dc62dae0055..257dde4d575326fc66e2746887d05e19584564dd 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -346,32 +346,39 @@ is for some reason not possible and local caching of the fetched data.") (define-public python-stevedore (package (name "python-stevedore") - (version "3.2.2") + (version "5.4.1") (source (origin (method url-fetch) (uri (pypi-uri "stevedore" version)) (sha256 (base32 - "1w11lm293afzb73iq0ba9wnmr2rjwymnhr92km4a4xrs7a5qcigq")))) - (build-system python-build-system) + "0jvgrn2mk7psrgly61k16p6pywnb191gzfliy9p824pya2pbad9i")))) + (build-system pyproject-build-system) (arguments - ;; The tests are disabled to avoid a circular dependency with - ;; python-stestr. - `(#:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'use-pbr-3 - (lambda _ - (substitute* '("setup.py" - "requirements.txt") - (("pbr!=2.1.0,>=2.0.0") "pbr>=3.0.0"))))))) - (propagated-inputs - (list python-pbr)) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "test-requirements.txt" + (("sphinx.*") + "sphinx\n")))) + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + (apply invoke "stestr" "run" test-flags))))))) + (propagated-inputs (list python-pbr)) + (native-inputs + (list python-coverage + python-setuptools + python-sphinx + python-stestr + python-wheel)) (home-page "https://github.com/dreamhost/stevedore") (synopsis "Manage dynamic plugins for Python applications") (description - "Python makes loading code dynamically easy, allowing you to configure + "Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extensions (\"plugins\") at runtime. Many applications implement their own library for doing this, using __import__ or importlib. Stevedore avoids creating yet another extension