summaryrefslogtreecommitdiff
path: root/gnu/packages/vpn.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-14 09:57:02 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-16 00:25:17 +0100
commit544ec2e2b95d4abb2290c8ac654c37a7a31cc301 (patch)
treeda885447190b3a7774d7d74859a45d73d288053c /gnu/packages/vpn.scm
parentdd47a070d4e2350186ec1709df1d65b9cb070002 (diff)
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>
Diffstat (limited to 'gnu/packages/vpn.scm')
-rw-r--r--gnu/packages/vpn.scm29
1 files changed, 17 insertions, 12 deletions
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index c5b45fd102a..8c4204ce8fe 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -1299,22 +1299,27 @@ L2TP allows you to tunnel PPP over UDP.")
1299 (version "0.16.1") 1299 (version "0.16.1")
1300 (source 1300 (source
1301 (origin 1301 (origin
1302 (method url-fetch) 1302 (method git-fetch)
1303 (uri (pypi-uri "vpn-slice" version)) 1303 (uri (git-reference
1304 (url "https://github.com/dlenski/vpn-slice")
1305 (commit (string-append "v" version))))
1306 (file-name (git-file-name name version))
1304 (sha256 1307 (sha256
1305 (base32 "1anfx4hn2ggm6sbwqmqx68s3l2rjcy4z4l038xqb440jnk8jvl18")))) 1308 (base32 "16shhgypw78d9982r7v293h8fbmpl4wvjb6076w66baincn599ag"))))
1306 (build-system python-build-system) 1309 (build-system pyproject-build-system)
1307 (arguments 1310 (arguments
1308 (list 1311 (list
1312 #:tests? #f ; No tests.
1309 #:phases 1313 #:phases
1310 '(modify-phases %standard-phases 1314 #~(modify-phases %standard-phases
1311 (add-after 'unpack 'patch-FHS-file-names 1315 (add-after 'unpack 'patch-FHS-file-names
1312 (lambda _ 1316 (lambda* (#:key inputs #:allow-other-keys)
1313 (substitute* "vpn_slice/linux.py" 1317 (substitute* "vpn_slice/linux.py"
1314 (("/sbin/iptables") 1318 (("/sbin/iptables")
1315 (which "iptables")) 1319 (search-input-file inputs "/sbin/iptables"))
1316 (("/sbin/ip") 1320 (("/sbin/ip")
1317 (which "ip")))))))) 1321 (search-input-file inputs "/sbin/ip"))))))))
1322 (native-inputs (list python-setuptools python-wheel))
1318 (inputs (list python-dnspython python-setproctitle iproute iptables)) 1323 (inputs (list python-dnspython python-setproctitle iproute iptables))
1319 (home-page "https://github.com/dlenski/vpn-slice") 1324 (home-page "https://github.com/dlenski/vpn-slice")
1320 (synopsis "Split tunneling replacement for vpnc-script") 1325 (synopsis "Split tunneling replacement for vpnc-script")