mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 19:39:34 +01:00
gnu: python-asyncssh: Update to 2.11.0.
* gnu/packages/ssh.scm (python-asyncssh)[version]: Update to 2.11.0. [propagated-inputs]: Add python-typing-extensions. [native-inputs]: Add python-fido2, python-aiofiles, netcat and python-pytest. [arguments]: Disable netcat autodetection. Replace 'check with call to pytest.
This commit is contained in:
parent
b40761ca9d
commit
97ebfc8f5c
1 changed files with 15 additions and 6 deletions
|
@ -35,9 +35,11 @@
|
||||||
|
|
||||||
(define-module (gnu packages ssh)
|
(define-module (gnu packages ssh)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages boost)
|
#:use-module (gnu packages boost)
|
||||||
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages crypto)
|
#:use-module (gnu packages crypto)
|
||||||
#:use-module (gnu packages elf)
|
#:use-module (gnu packages elf)
|
||||||
|
@ -785,31 +787,38 @@ shell services and remote host selection.")
|
||||||
(define-public python-asyncssh
|
(define-public python-asyncssh
|
||||||
(package
|
(package
|
||||||
(name "python-asyncssh")
|
(name "python-asyncssh")
|
||||||
(version "2.7.1")
|
(version "2.11.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "asyncssh" version))
|
(uri (pypi-uri "asyncssh" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0lnhh2h1mj79j66ni883s9f3xldnbjb10vh80g24b7m003mm524c"))))
|
"0mkvyv2fmbdfnfdh7g2im0gxnp8hwxv5g1xdazfsipd9ggknrhsr"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-cryptography python-pyopenssl python-gssapi
|
(list python-cryptography python-pyopenssl python-gssapi
|
||||||
python-bcrypt))
|
python-bcrypt python-typing-extensions))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list openssh openssl))
|
(list openssh openssl python-fido2 python-aiofiles netcat
|
||||||
|
python-pytest))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-tests
|
(add-after 'unpack 'disable-tests
|
||||||
(lambda* _
|
(lambda* _
|
||||||
|
(substitute* "tests/test_connection.py"
|
||||||
|
;; nc is always available.
|
||||||
|
(("which nc") "true"))
|
||||||
(substitute* "tests/test_agent.py"
|
(substitute* "tests/test_agent.py"
|
||||||
;; TODO Test fails for unknown reason
|
;; TODO Test fails for unknown reason
|
||||||
(("(.+)async def test_confirm" all indent)
|
(("(.+)async def test_confirm" all indent)
|
||||||
(string-append indent "@unittest.skip('disabled by guix')\n"
|
(string-append indent "@unittest.skip('disabled by guix')\n"
|
||||||
indent "async def test_confirm")))
|
indent "async def test_confirm")))))
|
||||||
#t)))))
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "pytest" "-vv")))))))
|
||||||
(home-page "https://asyncssh.readthedocs.io/")
|
(home-page "https://asyncssh.readthedocs.io/")
|
||||||
(synopsis "Asynchronous SSHv2 client and server library for Python")
|
(synopsis "Asynchronous SSHv2 client and server library for Python")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Reference in a new issue