aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorPjotr Prins2020-04-27 17:41:29 -0500
committerPjotr Prins2020-05-28 12:20:21 -0500
commit55e40dfe7881a02de92ffa1a2adf3e5fa24faa00 (patch)
tree82c96e330fce585244130e2a9f5400a9877681a1 /gn
parentebf0b1d60e66e7a92c8e31483bbff18a2ed4a197 (diff)
downloadguix-bioinformatics-55e40dfe7881a02de92ffa1a2adf3e5fa24faa00.tar.gz
Re=introduced gunicorn for python2. Please keep it for now.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/genenetwork.scm47
1 files changed, 46 insertions, 1 deletions
diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm
index 3b7cc71..56f83e0 100644
--- a/gn/packages/genenetwork.scm
+++ b/gn/packages/genenetwork.scm
@@ -42,6 +42,8 @@
#:use-module (gn packages python24)
#:use-module (gn packages statistics))
+
+
(define-public my-deploy
(package
(name "my-deploy")
@@ -188,6 +190,49 @@ bootstrap resampling to estimate the confidence region for the
location of a putative QTL.")
(license license:gpl2+))))
+;; Reintroduced python2-gunicorn because we are running GN with python2
+;; right now. Please keep it until we migrate to Python3 fully!
+
+(define-public python-gunicorn-gn
+ (package
+ (name "python-gunicorn-gn")
+ (version "19.9.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "gunicorn" version))
+ (sha256
+ (base32
+ "1wzlf4xmn6qjirh5w81l6i6kqjnab1n1qqkh7zsj1yb6gh4n49ps"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-mock" ,python-mock)))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'loosen-verion-restrictions
+ (lambda _
+ (substitute* "requirements_test.txt"
+ (("coverage.*") "coverage\n")
+ (("pytest.*") "pytest\n")
+ (("pytest-cov.*") "pytest-cov\n"))
+ #t)))))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://gunicorn.org")
+ (synopsis "WSGI HTTP Server for UNIX")
+ (description "Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for
+UNIX. It's a pre-fork worker model ported from Ruby's Unicorn project. The
+Gunicorn server is broadly compatible with various web frameworks, simply
+implemented, light on server resource usage, and fairly speedy.")
+ (license license:expat)))
+
+
+(define-public python2-gunicorn-gn
+ (package-with-python2 python-gunicorn-gn))
+
(define-public rust-qtlreaper
(let ((commit "2e7fed6d45b0b602d80fa2a55835f96ef1cba9e3")
@@ -271,7 +316,7 @@ location of a putative QTL.")
("rust-qtlreaper" ,rust-qtlreaper)
("nginx" ,nginx)
("python2-flask" ,python2-flask)
- ("gunicorn" ,gunicorn)
+ ("python2-gunicorn-gn" ,python2-gunicorn-gn)
; ("python2-pillow" ,python2-pillow) - for later!
("python2-pil1" ,python2-pil1-gn)
("python2-piddle-gn" ,python2-piddle-gn)