diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-07-24 03:56:59 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-27 00:25:51 +0100 |
| commit | f1abe316770ad43f65cf5d79a490a97749388256 (patch) | |
| tree | a55f470df8b2fab30aba64b56ba5111ab6024a7b /gnu | |
| parent | 808e3ebc596427ac008d68ddc0121fe8ff6ffa53 (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/openstack.scm | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 017372310cf..257dde4d575 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 |
