diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-21 16:07:47 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-28 14:38:55 +0000 |
| commit | f6659b612ec8c92e0e2d5ec51c0e92a46d00f0f4 (patch) | |
| tree | 5a544fb8b4085960a0131f0be9ea52fdefd62fbe /gnu/packages/vpn.scm | |
| parent | 4349cca1bf46835653cdc198c1037f4df93cd1c7 (diff) | |
gnu: Add python-proton-core.
* gnu/packages/vpn.scm (python-proton-core): New variable.
Change-Id: I0261d9393f9400098e9c26de74f7cac29fb1a035
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/vpn.scm')
| -rw-r--r-- | gnu/packages/vpn.scm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 34b2d242468..d75e57b3bf2 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm | |||
| @@ -901,6 +901,54 @@ VPN. The gratis tier offers unlimited bandwidth for up to 10 devices.") | |||
| 901 | (home-page "https://github.com/ProtonVPN/linux-cli") | 901 | (home-page "https://github.com/ProtonVPN/linux-cli") |
| 902 | (license license:gpl3+))) | 902 | (license license:gpl3+))) |
| 903 | 903 | ||
| 904 | (define-public python-proton-core | ||
| 905 | (package | ||
| 906 | (name "python-proton-core") | ||
| 907 | (version "0.7.0") | ||
| 908 | (home-page "https://github.com/ProtonVPN/python-proton-core") | ||
| 909 | (source | ||
| 910 | (origin | ||
| 911 | (method git-fetch) | ||
| 912 | (uri (git-reference | ||
| 913 | (url home-page) | ||
| 914 | (commit (string-append "v" version)))) | ||
| 915 | (file-name (git-file-name name version)) | ||
| 916 | (sha256 | ||
| 917 | (base32 "0j8pl2cx676g6akz110j0093bw6mg8g0p3nnng340y3kka9cngv5")))) | ||
| 918 | (build-system pyproject-build-system) | ||
| 919 | (arguments | ||
| 920 | (list | ||
| 921 | #:test-flags | ||
| 922 | #~(list ;; XXX: Require network access. | ||
| 923 | "--ignore=tests/test_alternativerouting.py" | ||
| 924 | "--ignore=tests/test_session.py" | ||
| 925 | "--ignore=tests/test_tlsverification.py" | ||
| 926 | "-k" "not test_auto_works_on_prod") | ||
| 927 | #:phases | ||
| 928 | #~(modify-phases %standard-phases | ||
| 929 | (add-before 'check 'prepare-tests | ||
| 930 | (lambda _ | ||
| 931 | (setenv "HOME" (getcwd)) | ||
| 932 | (setenv "XDG_RUNTIME_DIR" (string-append (getcwd) "/.run"))))))) | ||
| 933 | (native-inputs | ||
| 934 | (list gnupg | ||
| 935 | python-pyotp | ||
| 936 | python-pytest | ||
| 937 | python-pytest-cov | ||
| 938 | python-pyxdg | ||
| 939 | python-setuptools)) | ||
| 940 | (propagated-inputs | ||
| 941 | (list python-aiohttp | ||
| 942 | python-bcrypt | ||
| 943 | python-gnupg | ||
| 944 | python-pyopenssl | ||
| 945 | python-requests)) | ||
| 946 | (synopsis "Core logic used by the other Proton components") | ||
| 947 | (description | ||
| 948 | "This package is a core library used by other @code{python-proton-} | ||
| 949 | packages.") | ||
| 950 | (license license:gpl3+))) | ||
| 951 | |||
| 904 | (define-public tinc | 952 | (define-public tinc |
| 905 | (package | 953 | (package |
| 906 | (name "tinc") | 954 | (name "tinc") |
