diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-23 23:36:58 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 00:56:37 +0100 |
commit | 1e4fb65b2f64b84b5a23d366f03c9d2859b1e35c (patch) | |
tree | c9c9f14f731fd6e7d7d7b46b2937ac20260d4be4 /gnu/packages/python-xyz.scm | |
parent | bd250789b6ccc99810806ddffe1320f3df488a80 (diff) |
gnu: python-sshtunnel: Update to 0.4.0-0.dc07328.
* gnu/local.mk (python-sshtunnel): Update to 0.4.0-0.dc07328.
* gnu/packages/patches/python-sshtunnel-pep518.patch
* gnu/packages/python-xyz.scm (python-sshtunnel)
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phase 'remove-deprecated-dsskey.
[native-inputs]: Add python-setuptools.
Change-Id: I05da3ee717076b690d4a3e609b98d23a5ffa965a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 56 |
1 files changed, 34 insertions, 22 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index aee2b4483c..3a73c4687a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9477,29 +9477,41 @@ utility, a static analysis tool (linter) for Robot Framework source files.") (license license:asl2.0))) (define-public python-sshtunnel - (package - (name "python-sshtunnel") - (version "0.4.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "sshtunnel" version)) - (sha256 - (base32 - "1z7rdgpp9m36ysh9pfzrn3vyiaj05bkjvcjdhj8vz0fvfjkhxjz7")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? (invoke "pytest" "-vv" "tests"))))))) - (propagated-inputs (list python-paramiko)) - (native-inputs (list openssh python-pytest python-mock)) - (home-page "https://github.com/pahaz/sshtunnel") - (synopsis "Python SSH tunnels library") - (description "@code{sshtunnel} is a Python module for easily creating SSH + (let ((commit "dc0732884379a19a21bf7a49650d0708519ec54f") + (revision "0")) + (package + (name "python-sshtunnel") + (version (git-version "0.4.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pahaz/sshtunnel") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fzq7pbqa6fjamzp61gjpd2hzph2ag7r507dlwpqilp6w8ipz49a")) + (patches (search-patches "python-sshtunnel-pep518.patch")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-deprecated-dsskey + (lambda _ + (substitute* "sshtunnel.py" + (("'dsa': paramiko\\.DSSKey,") + "") + (("paramiko\\.DSSKey, ") + ""))))))) + (propagated-inputs (list python-paramiko)) + (native-inputs + (list openssh python-mock python-pytest python-setuptools)) + (home-page "https://github.com/pahaz/sshtunnel") + (synopsis "Python SSH tunnels library") + (description "@code{sshtunnel} is a Python module for easily creating SSH tunnels in the background, using Python.") - (license license:expat))) + (license license:expat)))) (define-public python-robotframework-sshtunnellibrary (package |