diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-23 23:26:34 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-24 11:05:27 +0100 |
| commit | abd1923bded18ca49b740379aff083bd84673b69 (patch) | |
| tree | 1f3e160593c6e4520371be8f3167b42f31b82f3d /gnu | |
| parent | 8707776c941fb333ee24b1c6c6caa00c30a092c1 (diff) | |
gnu: python-tftpy: Update to 0.8.6.
* gnu/packages/python-xyz.scm (python-tftpy): Update to 0.8.6.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-backend, #:test-flags, #:phases>: Replace 'check
phase replacement with these keywords.
[native-inputs]: Add python-setuptools.
[description]: Improve style.
Change-Id: Ic2e825e42e06eef1f570a7030b3461283ad2df86
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 795b17172fe..a37515bc84c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22184,32 +22184,36 @@ multiple processes (imagine multiprocessing, billiard, futures, celery etc). (define-public python-tftpy (package (name "python-tftpy") - (version "0.8.2") + (version "0.8.6") (source (origin - (method git-fetch) ;no tests in PyPI archive + (method git-fetch) (uri (git-reference (url "https://github.com/msoulier/tftpy") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 - "1gl04ps8h8r7av3h0zbm8gwmkqs9rkk5vf7n8mv2bzrkwvy9hacc")))) - (build-system python-build-system) + (base32 "11cs52skmisg7rlmcxghmpcxfszcwmph6cvmfdn2p0ks6ckfy9q2")))) + (build-system pyproject-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - ;; The default DEBUG logging level is way too verbose. - (substitute* "t/test.py" - (("logging\\.DEBUG") - "logging.INFO")) - (invoke "python" "-m" "unittest" "t/test.py"))))))) + (list + #:test-backend #~'unittest + #:test-flags #~(list "tests/test.py") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'configure-tests + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; The default DEBUG logging level is way too verbose. + (substitute* "tests/test.py" + (("logging\\.DEBUG") + "logging.INFO")))))))) + (native-inputs (list python-setuptools)) (home-page "https://tftpy.sourceforge.net/") (synopsis "Python trivial file transfer protocol (TFTP) library") - (description "TFTPy is a trivial file transfer protocol (TFTP) Python -library. It can be used to act both as a TFTP client or TFTP server.") + (description + "TFTPy is a trivial file transfer protocol (TFTP) Python library. It can +be used to act both as a TFTP client or TFTP server.") (license license:expat))) (define-public python-greenlet |
