guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 0a1c8f797c94e40f034f317bca42b52fe9c42f5e
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Oct 28 15:00:09 2025 +0100

    gnu: python-pifpaf: Update to 3.4.0.
    
    * gnu/packages/python-xyz.scm (python-pifpaf): Update to 3.4.0.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Drop 'check phase replacement.  Add phase
    'install-drivers.
    [native-inputs]: Add python-setuptools and python-packaging.  Replace
    python-os-testr by python-stestr.
    [description]: Improve style.
    
    Change-Id: I57c69f114f961c759458cacf4b7728d655e1f4e9
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++------------------
 1 file changed, 28 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fcf4a2dcc4..acf8ae315f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30195,22 +30195,26 @@ Python.  It also provides some custom formatters and 
handlers.")
 (define-public python-pifpaf
   (package
     (name "python-pifpaf")
-    (version "3.1.5")
+    (version "3.4.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "pifpaf" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/jd/pifpaf";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "19bdmxldc2m570isl7hbqgbb20si4sin7pi5fw8sv9py8dyv2s4n"))))
-    (build-system python-build-system)
+        (base32 "1mj41h5xrkx71d7g5di3ykd4bsbgr7x432zbp63majgjci86gmm9"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda _
-             (invoke "python" "setup.py" "testr" "--slowest"
-                     "--testr-args=until-failure"))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'install-drivers
+            (lambda* (#:key inputs outputs #:allow-other-keys)
+              (let ((site (site-packages inputs outputs)))
+                (copy-recursively "pifpaf/drivers"
+                                (string-append site "/pifpaf/drivers/"))))))))
     (propagated-inputs
      (list python-click
            python-daiquiri
@@ -30220,14 +30224,20 @@ Python.  It also provides some custom formatters and 
handlers.")
            python-psutil
            python-xattr))
     (native-inputs
-     (list python-mock python-os-testr python-requests
-           python-testrepository python-testtools))
+     (list python-mock
+           python-stestr
+           python-packaging
+           python-requests
+           python-testrepository
+           python-testtools
+           python-setuptools))
     (home-page "https://github.com/jd/pifpaf";)
     (synopsis "Tools and fixtures to manage daemons for testing in Python")
-    (description "Pifpaf is a suite of fixtures and a command-line tool that
-starts and stops daemons for a quick throw-away usage.  This is typically
-useful when needing these daemons to run integration testing.  It originally
-evolved from its precursor @code{overtest}.")
+    (description
+     "Pifpaf is a suite of fixtures and a command-line tool that starts and
+stops daemons for a quick throw-away usage.  This is typically useful when
+needing these daemons to run integration testing.  It originally evolved from
+its precursor @code{overtest}.")
     (license license:asl2.0)))
 
 (define-public python-pytest-check-links

Reply via email to