diff options
Diffstat (limited to 'gn/packages/genecup.scm')
-rw-r--r-- | gn/packages/genecup.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gn/packages/genecup.scm b/gn/packages/genecup.scm index 0cd776f..868bfff 100644 --- a/gn/packages/genecup.scm +++ b/gn/packages/genecup.scm @@ -7,7 +7,9 @@ #:use-module (guix git-download) #:use-module (guix build-system python) #:use-module (gnu packages admin) + #:use-module (gnu packages base) #:use-module (gnu packages bioinformatics) + #:use-module (gnu packages compression) #:use-module (gnu packages javascript) #:use-module (gnu packages machine-learning) #:use-module (gnu packages python) @@ -153,6 +155,11 @@ if __name__ == '__main__': (lambda _ (substitute* "server.py" (("4200") "4204")))) + ;; TODO: This should be disabled in the source. + (add-after 'unpack 'disable-debug-mode + (lambda _ + (substitute* "server.py" + (("debug=True") "debug=False")))) (add-after 'unpack 'make-files-writable (lambda _ (for-each make-file-writable (find-files ".")))) @@ -179,6 +186,10 @@ if __name__ == '__main__': (("https.*1.12.9/umd/popper.min.js.*\\\">") "/static/popper.min.js\">")) (substitute* "ratspub.py" (("hostname") (string-append inetutils "/bin/hostname")))))) + (add-after 'unpack 'extract-pubmed-archive + (lambda _ + (invoke "gzip" "-d" "minipubmed.tgz") + (invoke "tar" "xvf" "minipubmed.tar"))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) @@ -230,6 +241,8 @@ if __name__ == '__main__': (inputs `(("edirect" ,edirect) ("inetutils" ,inetutils) + ("gzip" ,gzip) + ("tar" ,tar) ("python-bcrypt" ,python-bcrypt) ("python-flask-sqlalchemy" ,python-flask-sqlalchemy) ("python-keras" ,python-keras-no-tests) @@ -263,7 +276,7 @@ concepts and a list of keywords for each concept.") (version "HEAD-of-master-branch") (source (git-checkout - (url "https://github.com/hakangunturkun/GeneCup") + (url "https://git.genenetwork.org/genecup") (branch "master"))))) (define-public genecup-with-tensorflow-native |