diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-21 23:41:38 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:54 +0100 |
| commit | ad416124e2501b2f514f7868422a23cd5060f9df (patch) | |
| tree | 8a79ceb204ab8a7805fb7ffc4dfe454e3b74ee42 /gnu/packages/openstack.scm | |
| parent | fc5077c07ea4caa0ce4f49724efa63cf4e26bf3d (diff) | |
gnu: python-os-testr: Update to 3.0.0-0.0ba674d.
* gnu/packages/openstack.scm (python-os-testr): Update to 3.0.0-0.0ba674d.
[source]: Switch to git-fetch.
[arguments]<#:phases>: Add phase 'set-version.
[native-inputs]: Remove python-wheel.
[home-page]: Use github link.
Change-Id: I403e6a973adc0512c6393bc16e56f3ac96b14211
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/openstack.scm')
| -rw-r--r-- | gnu/packages/openstack.scm | 79 |
1 files changed, 43 insertions, 36 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index ee31ae9f086..b498766067b 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -51,6 +51,7 @@ #:use-module ((guix build-system python) #:select (pypi-uri)) #:use-module (guix build-system pyproject) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix packages) #:use-module (srfi srfi-1)) @@ -259,43 +260,49 @@ is for some reason not possible and local caching of the fetched data.") (list python-pbr-next python-setuptools python-wheel))))) (define-public python-os-testr - (package - (name "python-os-testr") - (version "3.0.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "os-testr" version)) - (sha256 - (base32 "0vik5sjl0qhz6xqqg6gnaf5jva31m7xykyc0azb53jfq7y57ladv")))) - (build-system pyproject-build-system) - (arguments - (list - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - (substitute* "test-requirements.txt" - (("(coverage|hacking).*") - ""))))))) - (propagated-inputs - (list python-stestr)) - (native-inputs - (list python-babel - python-ddt - python-oslotest - python-pbr - python-setuptools - python-testrepository - python-testscenarios - python-testtools - python-wheel)) - (home-page "https://www.openstack.org/") - (synopsis "Testr wrapper to provide functionality for OpenStack projects") - (description - "Os-testr provides developers with a testr wrapper and an output filter + (let ((commit "0ba674d8c5d34890698e4e8ff9f71b24c389e109") + (revision "0")) + (package + (name "python-os-testr") + (version (git-version "3.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openstack/os-testr") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fd8n5fsq35ikak8by4z45sya2m1pmxpc4440579rfk3jjsq4vgc")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "test-requirements.txt" + (("(coverage|hacking).*") + "")))) + (add-after 'unpack 'set-version + (lambda _ + (setenv "PBR_VERSION" "3.0.0")))))) + (propagated-inputs (list python-stestr)) + (native-inputs + (list python-babel + python-ddt + python-oslotest + python-pbr + python-setuptools + python-testrepository + python-testscenarios + python-testtools)) + (home-page "https://github.com/openstack/os-testr") + (synopsis "Testr wrapper to provide functionality for OpenStack projects") + (description + "Os-testr provides developers with a testr wrapper and an output filter for subunit.") - (license license:asl2.0))) + (license license:asl2.0)))) (define-public python-stevedore (package |
