diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-05 13:29:29 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-05 17:09:11 +0100 |
| commit | 03ca423612ff3025dc768511ce5d1d4e41c05e2c (patch) | |
| tree | 675cc03b24a41090cb22fb93bb1a87ceb6a60129 | |
| parent | 44f7ad2fc6519855ce98ed8eaebef9196c9e100a (diff) | |
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>
| -rw-r--r-- | gnu/packages/python-xyz.scm | 26 |
1 files 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 |
