This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new e6ca4b6096 gnu: stapler: Switch to pyproject.
e6ca4b6096 is described below

commit e6ca4b6096dba2f968f9e2a45445b29dbe13db2b
Author: Sergey Trofimov <[email protected]>
AuthorDate: Thu Dec 18 11:35:28 2025 +0100

    gnu: stapler: Switch to pyproject.
    
    * gnu/packages/pdf.scm (stapler): Switch to pyproject.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>{fix-more-itertools-version-requirement}: Adjust.
    <#:build-backend>: Use poetry.core.masonry.api.
    <#:test-flags>: Specify test files.
    [native-inputs]: Add python-poetry-core, python-pytest, python-setuptools.
    
    Change-Id: Ic1e0811f97b17dcdc1b639f13c6f8e750bfc20b0
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/pdf.scm | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 3a20b4de16..a5446a6dae 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -1733,17 +1733,21 @@ rendering of the file through the Pango Cairo back 
end.")
        (sha256
         (base32
          "0b2lbm3f79cdxcsagwhzihbzwahjabxqmbws0c8ki25gpdnygdd7"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'fix-more-itertools-version-requirement
-           (lambda _
-             ;; Tests require an version of the more-itertools module older
-             ;; than the one we have packaged.
-             (substitute* "setup.py"
-               (("more-itertools>=2\\.2,<6\\.0\\.0") "more-itertools>=2.2"))
-             #t)))))
+     (list
+      #:test-flags #~(list "staplelib/tests.py") ; from tox.ini
+      #:build-backend "poetry.core.masonry.api"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-more-itertools-version-requirement
+            (lambda _
+              (substitute* "pyproject.toml"
+                ;; Tests require an version of the more-itertools module older
+                ;; than the one we have packaged.
+                (("more-itertools = \">=2.2,<6.0.0\"")
+                 "more-itertools = \">=2.2\"")))))))
+    (native-inputs (list python-poetry-core python-pytest python-setuptools))
     (propagated-inputs
      (list python-more-itertools python-pypdf2))
     (home-page "https://github.com/hellerbarde/stapler";)

Reply via email to