about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-02-26 05:01:31 -0600
committerFrederick Muriuki Muriithi2025-02-26 05:01:31 -0600
commit9a887cf44aac5c3e0433e5e98b9bdc485cb37282 (patch)
tree5fcd24985996f0ee76477ba8ffe346c659a4e24a
parentdf4bb961c1ebf1c5900677e8bcc143b9ed7e7294 (diff)
downloadguix-bioinformatics-9a887cf44aac5c3e0433e5e98b9bdc485cb37282.tar.gz
python-flask-session: Override package with egregious name.
Redefine package, making use of an egregious name to force us to get
rid of it once we pin a guix channel with an updated
python-flask-session.
-rw-r--r--gn/packages/genenetwork.scm33
1 files changed, 27 insertions, 6 deletions
diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm
index b1f0007..b5b768f 100644
--- a/gn/packages/genenetwork.scm
+++ b/gn/packages/genenetwork.scm
@@ -49,6 +49,7 @@
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml)
+  #:use-module (gnu packages serialization)
   #:use-module (gn packages bioinformatics)
   #:use-module (gn packages crates-io)
   #:use-module (gn packages gemma)
@@ -192,15 +193,35 @@
       (license license:agpl3+))))
 
 
-(define-public gn:python-flask-session
+(define-public temporary-python-flask-session
   ;; This is a stop-gap to get the applications building with the guix channel
   ;; set to 61428cc.
   ;; Remove this as soon as the applications are building with mainline
   ;; python-flask-session.
   (package
-    (inherit python-flask-session)
-    (name "python-flask-session-0.8.0")
-    (version "0.8.0")))
+    (name "temporary-python-flask-session")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "flask_session" version))
+       (sha256
+        (base32
+         "1zs20zpq6gxz9gsccbd2jrrbbcfvh0x9z9741gkr8dhh07mlbq10"))))
+    (build-system pyproject-build-system)
+    (arguments
+     '(#:tests? #f)) ; Tests require the various storage backends to be present
+    (inputs
+     (list python-flit-core))
+    (propagated-inputs
+     (list python-cachelib python-flask python-msgspec))
+    (home-page "https://github.com/fengsp/flask-session")
+    (synopsis "Adds server-side session support to your Flask application")
+    (description
+     "Flask-Session is an extension for Flask that adds support for
+Server-side sessions, with a variety of different backends for session
+storage.")
+    (license license:bsd-3)))
 
 (define-public genenetwork2
   (let ((commit "96433ed20e02d6f8ea592d765521c24de84d5a28")
@@ -298,7 +319,7 @@
              python-flask
              python-flask-debugtoolbar
              ;;python-flask-session
-             gn:python-flask-session
+             temporary-python-flask-session
              python-htmlgen
              python-ijson
              python-jinja2
@@ -489,7 +510,7 @@
             python-jsonpickle
             python-mysqlclient
             ;;python-flask-session
-            gn:python-flask-session
+            temporary-python-flask-session
             javascript-jquery
             javascript-bootstrap
             javascript-datatables