mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-18 00:42:17 -05:00
gnu: Add python-tftpy.
* gnu/packages/python-xyz.scm (python-tftpy): New variable.
This commit is contained in:
parent
8153a402ae
commit
83c14064ec
1 changed files with 31 additions and 0 deletions
|
@ -14643,6 +14643,37 @@ (define-public python-tblib
|
|||
(define-public python2-tblib
|
||||
(package-with-python2 python-tblib))
|
||||
|
||||
(define-public python-tftpy
|
||||
(package
|
||||
(name "python-tftpy")
|
||||
(version "0.8.2")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch) ;no tests in PyPI archive
|
||||
(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)
|
||||
(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")))))))
|
||||
(home-page "http://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.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-greenlet
|
||||
(package
|
||||
(name "python-greenlet")
|
||||
|
|
Loading…
Reference in a new issue