guix_mirror_bot pushed a commit to branch master
in repository guix.

commit da0f28d975aa5005f78bf6c9d96c70bfef93bffa
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Nov 22 11:40:56 2025 +0100

    gnu: python-phpserialize: Switch to pyproject.
    
    * gnu/packages/python-xyz.scm (python-phpserialize):
    [build-system]: Switch to pyproject-build-system.
    [arguments]: Configure tests.
    [native-inputs]: Add python-setuptools.
    [home-page]: Use https.
    [description]: Improve style.
    
    Change-Id: I3592dd5d79e8673e30c976003f5c130748c2947f
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f5f11dd6c1..c5a3c56ccc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -34156,19 +34156,25 @@ to:
     (version "1.3")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "phpserialize" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/mitsuhiko/phpserialize";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "19qgkb9z4zjbjxlpwh2w6pxkz2j3iymnydi69jl0jg905lqjsrxz"))))
-    (build-system python-build-system)
+        (base32 "062lpv2zpkn96v8gpskvw2pfgh3mafnb0s6xxa0jwbr7vz78wgdr"))))
+    (build-system pyproject-build-system)
     (arguments
      (list
-      ;; tests missing in pypi archive, anhow they are quite simple and not 
worth any hassle
-      #:tests? #f))
-    (home-page "http://github.com/mitsuhiko/phpserialize";)
+      #:test-backend #~'unittest
+      ;; XXX: Unclear why this test fails.
+      #:test-flags #~(list "-k" "not test_dumps_dict")))
+    (native-inputs (list python-setuptools))
+    (home-page "https://github.com/mitsuhiko/phpserialize";)
     (synopsis "Python port of the serialize and unserialize functions of PHP")
     (description
-     "This package provides a port of the serialize and unserialize functions 
of PHP for Python")
+     "This package provides a port of the @code{serialize} and
+@code{unserialize} functions of PHP for Python.")
     (license license:bsd-3)))
 
 (define-public python-pydevtool

Reply via email to