~ruther/guix-local

03ca423612ff3025dc768511ce5d1d4e41c05e2c — Nicolas Graves 4 months ago 44f7ad2
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 <sharlatanus@gmail.com>
1 files changed, 15 insertions(+), 11 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +15 -11
@@ 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