guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 03ca423612ff3025dc768511ce5d1d4e41c05e2c
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 5 13:29:29 2025 +0200

    gnu: python-jsonrpclib-pelix: Switch to pyproject.
    
    * gnu/packages/python-xyz.scm (python-jsonrpclib-pelix):
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:test-backend, #:test-flags>: Enable tests.
    [native-inputs]: Add python-setuptools.
    [home-page, description]: Improve style.
    
    Change-Id: I09d18add499af646e9a2f1aeecaf2379851c705f
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 803eab763a..514678b037 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27923,21 +27923,25 @@ offset, or using offset reference
     (version "0.3.2")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "jsonrpclib-pelix" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/tcalmant/jsonrpclib";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
-    (build-system python-build-system)
+        (base32 "1mhnqmgcplsxc4zygxy4hm99si7p2rpyl4bpmilzqc51k2r3khzl"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:tests? #f))                    ; no tests in PyPI tarball
-    (home-page "https://github.com/tcalmant/jsonrpclib/";)
+     (list
+      #:test-backend #~'unittest
+      #:test-flags #~(list "-k" "not test_multicall_success")))
+    (native-inputs (list python-setuptools))
+    (home-page "https://github.com/tcalmant/jsonrpclib";)
     (synopsis "JSON-RPC 2.0 client library for Python")
     (description
-     "This library implements the JSON-RPC v2.0
-specification (backwards-compatible) as a client library for Python.  This
-version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
-services.")
+     "This library implements the JSON-RPC v2.0 specification
+(backwards-compatible) as a client library for Python.  This version is a fork
+of jsonrpclib by Josh Marshall, usable with Pelix remote services.")
     (license license:asl2.0)))
 
 (define-public python-setuptools-git

Reply via email to