guix_mirror_bot pushed a commit to branch master
in repository guix.

commit c5b0b9cba0b112ae0d4c665354278ee468e94418
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Dec 21 17:09:48 2025 +0100

    gnu: Add python-proton-vpn-api-core.
    
    * gnu/packages/vpn.scm (python-proton-vpn-api-core): New variable.
    
    Change-Id: I3812dd75f04a689328000f7284f57ab84eddf4ea
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/vpn.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index 51b5f0f9e6..f5e29b7f43 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -96,6 +96,7 @@
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages samba)
+  #:use-module (gnu packages security-token)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages tls)
@@ -979,6 +980,55 @@ packages.")
      "This package provides a keyring plugin for Proton technologies.")
     (license license:gpl3+)))
 
+(define-public python-proton-vpn-api-core
+  (package
+    (name "python-proton-vpn-api-core")
+    (version "4.14.1")
+    (home-page "https://github.com/ProtonVPN/python-proton-vpn-api-core";)
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url home-page)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0s7qasxiwd924dps1696vlnxr7626li5c31kv2kb3c4sqk6s6867"))))
+    (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
+           network-manager
+           network-manager-openvpn))
+    (propagated-inputs
+     (list python-cryptography
+           python-distro
+           python-fido2
+           python-sentry-sdk
+           python-pynacl
+           python-packaging
+           python-proton-core
+           python-proton-vpn-local-agent
+           python-pygobject
+           python-pycairo
+           python-jinja2))
+    (synopsis "Core logic used by the other Proton VPN components")
+    (description
+     "This package is a core library used by other @code{python-proton-vpn-}
+packages.")
+    (license license:gpl3+)))
+
 (define-public python-proton-vpn-local-agent
   (let* ((name "python-proton-vpn-local-agent")
          (version "1.6.0")

Reply via email to