guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 2b6ba236074e04f947948381ccc1e43ab518bb29
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Jul 24 04:07:52 2025 +0200

    gnu: python-oslo-context: Switch to pyproject.
    
    * gnu/packages/openstack.scm (python-oslo-context):
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Refresh them.
    [native-inputs]: Add python-setuptools, python-wheel.  Replace
    python-oslotest by python-oslotest-bootstrap.  Remove python-hacking.
    
    Change-Id: I1e55cf963c76bb674a8d69fd4c52f58032e0bbf2
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/openstack.scm | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index b8194d68d4..4f8a850463 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -661,26 +661,28 @@ for running external processes.")
        (sha256
         (base32
          "091j2cjh1b60nx6s0a4amb2idh9awijnbmppc3an0738fv8cdh48"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (add-after 'unpack 'relax-requirements
-                    (lambda _
-                      (substitute* "test-requirements.txt"
-                        (("hacking[<>!=].*") "hacking\n")
-                        ;; unused, code-quality checks only
-                        (("bandit[<>!=]" line) (string-append "# " line))
-                        (("pre-commit[<>!=]" line) (string-append "# " 
line))))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-requirements
+            (lambda _
+              (substitute* "test-requirements.txt"
+                ;; unused, code-quality checks only
+                (("(bandit|hacking|pre-commit)[<>!=]" line)
+                 (string-append "# " line))))))))
     (propagated-inputs
      (list python-debtcollector))
     (native-inputs
      (list python-coverage
            python-fixtures
-           python-hacking
            python-mypy
-           python-oslotest
+           python-oslotest-bootstrap
            python-pbr
-           python-stestr))
+           python-setuptools
+           python-stestr
+           python-wheel))
     (home-page "https://launchpad.net/oslo";)
     (synopsis "Oslo context library")
     (description

Reply via email to