~ruther/guix-local

b07af241584f8cce141b1a8a77eec0e4ce3d8949 — Nicolas Graves 3 months ago c5b0b9c
gnu: Add proton-vpn-cli.

* gnu/packages/vpn.scm (proton-vpn-cli): New variable.

Change-Id: I1bc662904eb7739143714a3da1ff3590fefffba3
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 45 insertions(+), 0 deletions(-)

M gnu/packages/vpn.scm
M gnu/packages/vpn.scm => gnu/packages/vpn.scm +45 -0
@@ 1150,6 1150,51 @@ name = ~s~%"
LocalAgent, server, and python-bindings for that crate.")
      (license license:gpl3+))))

(define-public proton-vpn-cli
  (package
    (name "proton-vpn-cli")
    (version "0.1.3")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/ProtonVPN/proton-vpn-cli")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1kckgdqx9mgayyj3dh2fgd9brzw2s4wrxl6ajsfssnfmpqnz2zhy"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'prepare-tests
            (lambda _
              (setenv "HOME" (getcwd))
              (setenv "XDG_RUNTIME_DIR" (string-append (getcwd) "/.run")))))))
    (native-inputs
     (list python-pytest
           python-pytest-asyncio
           python-pytest-cov
           python-pyxdg
           python-setuptools))
    (propagated-inputs
     (list python-click
           python-dbus-fast
           python-proton-core
           python-proton-vpn-api-core
           python-proton-vpn-local-agent
           python-proton-keyring-linux
           python-sentry-sdk))
    (synopsis "Command-line client for ProtonVPN")
    (description
     "This is the official command-line interface for ProtonVPN, a secure
point-to-point virtual private networking (VPN) service with a gratis tier.
It can automatically find and connect to the fastest servers or use Tor over
VPN.  The gratis tier offers unlimited bandwidth for up to 10 devices.")
    (home-page "https://github.com/ProtonVPN/linux-cli")
    (license license:gpl3+)))

(define-public tinc
  (package
    (name "tinc")