summary refs log tree commit diff
path: root/topics/deploy
diff options
context:
space:
mode:
authorArun Isaac2025-11-23 02:02:51 +0000
committerPjotr Prins2026-01-05 11:12:11 +0100
commitd4904a1bbd26c914d0571111ec3542ec67ea3422 (patch)
tree9e4e85f023bb821384cfafe78dce6a6db22f7f1b /topics/deploy
parentd6995cf858c8ebb1b0fed5208f4a980c2042bc6f (diff)
downloadgn-gemtext-d4904a1bbd26c914d0571111ec3542ec67ea3422.tar.gz
Use python-charset-normalizer-2.10 in UTHSC VPN script.
Diffstat (limited to 'topics/deploy')
-rw-r--r--topics/deploy/uthsc-vpn.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/topics/deploy/uthsc-vpn.scm b/topics/deploy/uthsc-vpn.scm
index a4106ec..3f99e07 100644
--- a/topics/deploy/uthsc-vpn.scm
+++ b/topics/deploy/uthsc-vpn.scm
@@ -1,4 +1,5 @@
 (use-modules ((gnu packages python-web) #:select (python-requests python-urllib3))
+             ((gnu packages python-xyz) #:select (python-charset-normalizer))
              ((gnu packages guile-xyz) #:select (guile-ini guile-lib guile-smc))
              ((gnu packages vpn) #:select (openconnect-sso vpn-slice))
              (guix build-system python)
@@ -36,6 +37,22 @@
          "01dkqv0rsjqyw4wrp6yj8h3bcnl7c678qkj845596vs7p4bqff4a"))))
     (build-system python-build-system)))
 
+(define python-charset-normalizer-2.10
+  (package
+    (inherit python-charset-normalizer)
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "charset-normalizer" version))
+       (sha256
+        (base32 "04zlajr77f6c7ai59l46as1idi0jjgbvj72lh4v5wfpz2s070pjp"))))
+    (build-system python-build-system)
+    (arguments (list))
+    (native-inputs
+     (modify-inputs (package-native-inputs python-charset-normalizer)
+       (delete "python-setuptools")))))
+
 (define python-requests-2.28
   (package
     (inherit python-requests)
@@ -52,6 +69,7 @@
     (native-inputs (list))
     (propagated-inputs
      (modify-inputs (package-propagated-inputs python-requests)
+       (replace "python-charset-normalizer" python-charset-normalizer-2.10)
        (replace "python-urllib3" python-urllib3-1.26)))))
 
 ;; Login to the UTHSC VPN fails with an SSLV3_ALERT_HANDSHAKE_FAILURE