diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-08-14 09:45:10 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-16 00:25:06 +0100 |
| commit | dd47a070d4e2350186ec1709df1d65b9cb070002 (patch) | |
| tree | abe25bdf14f80739c96c90b1dc410ff55dc2c399 /gnu/packages | |
| parent | dd9180b6c2c113b388f17058ddccbac3447a8a84 (diff) | |
gnu: sshoot: Switch to pyproject.
* gnu/packages/vpn.scm (sshoot):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Rewrite using gexps and search-input-file.
[native-inputs]: Add python-setuptools, python-wheel.
[inputs, description]: Run guix style.
Change-Id: I3cff24a71cb90b8ffa39aafd0a5586428a92f4fa
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/vpn.scm | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index e75baedbfdf..c5b45fd102a 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -1056,35 +1056,31 @@ DNS domain name queries.") (version "1.5.1") (source (origin - (method url-fetch) - (uri (pypi-uri name version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/albertodonato/sshoot") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "05i54nga4vy660yy9yf6dl376yj0jc51303yr295qk3k9w0k96yd")))) - (build-system python-build-system) + (base32 "0725p0l2gx881hsjw3nj44n4gm1kv9hirv5cd4d9yr1ba87whp3q")))) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-paths - (lambda _ - (substitute* "sshoot/tests/test_manager.py" - (("/bin/sh") (which "sh"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv" "--pyargs" "sshoot"))))))) - (inputs - (list python-argcomplete - python-prettytable - python-pyyaml - python-pyxdg - python-toolrack)) - ;; For tests only. - (native-inputs - (list python-pytest python-pytest-mock)) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "sshoot/tests/test_manager.py" + (("/bin/sh") + (search-input-file inputs "bin/sh")))))))) + (inputs (list python-argcomplete python-prettytable python-pyyaml + python-pyxdg python-toolrack)) + (native-inputs (list python-pytest python-pytest-mock python-setuptools + python-wheel)) (home-page "https://github.com/albertodonato/sshoot") (synopsis "VPN session manager (sshuttle)") - (description "sshoot provides a command-line interface to manage multiple + (description + "sshoot provides a command-line interface to manage multiple @command{sshuttle} virtual private networks. It supports flexible profiles with configuration options for most of @command{sshuttle}’s features.") (license license:gpl3+))) |
