mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 19:41:50 +02:00
gnu: vpn-slice: Switch to pyproject.
* gnu/packages/vpn.scm (vpn-slice): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Improve style, rewrite using gexps. <#:tests>: Disable them explicitely. [native-inputs]: Add python-setuptools, python-wheel. Change-Id: I705f23279b8fb8dfa8405635f026d3aa85183226 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
dd47a070d4
commit
544ec2e2b9
+17
-12
@@ -1299,22 +1299,27 @@ L2TP allows you to tunnel PPP over UDP.")
|
||||
(version "0.16.1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "vpn-slice" version))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/dlenski/vpn-slice")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1anfx4hn2ggm6sbwqmqx68s3l2rjcy4z4l038xqb440jnk8jvl18"))))
|
||||
(build-system python-build-system)
|
||||
(base32 "16shhgypw78d9982r7v293h8fbmpl4wvjb6076w66baincn599ag"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ; No tests.
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-FHS-file-names
|
||||
(lambda _
|
||||
(substitute* "vpn_slice/linux.py"
|
||||
(("/sbin/iptables")
|
||||
(which "iptables"))
|
||||
(("/sbin/ip")
|
||||
(which "ip"))))))))
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-FHS-file-names
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "vpn_slice/linux.py"
|
||||
(("/sbin/iptables")
|
||||
(search-input-file inputs "/sbin/iptables"))
|
||||
(("/sbin/ip")
|
||||
(search-input-file inputs "/sbin/ip"))))))))
|
||||
(native-inputs (list python-setuptools python-wheel))
|
||||
(inputs (list python-dnspython python-setproctitle iproute iptables))
|
||||
(home-page "https://github.com/dlenski/vpn-slice")
|
||||
(synopsis "Split tunneling replacement for vpnc-script")
|
||||
|
||||
Reference in New Issue
Block a user