aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2020-01-15 04:42:43 -0600
committerEfraim Flashner2020-01-15 06:18:54 -0600
commit06d9f9655d124803c911b8bcade0b97e08168c12 (patch)
tree3f7e6075a36b2e93e71d4e4d7ad1dd2ffb8fb5bb
parentfc7386366195a3270e928cd09f9d3576c0771663 (diff)
downloadguix-bioinformatics-06d9f9655d124803c911b8bcade0b97e08168c12.tar.gz
gn: Add python2-htmlgen-2.2.
-rw-r--r--gn/packages/python.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index 2336cc9..c3e01fd 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -539,6 +539,53 @@ project)")
(description #f)
(license #f)))
+(define-public python2-htmlgen-2.2
+ (package
+ (name "python2-htmlgen-2.2")
+ (version "2.2.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://debian/pool/main/h/htmlgen/htmlgen_" version ".orig.tar.gz"))
+ (sha256
+ (base32
+ "186kb434q6z84g31ysvzi4kcfcvl3pmm57k4jlng4ccgls94x6wb"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'modernize-imports
+ (lambda _
+ (substitute* "HTMLgen.py"
+ (("whrandom") "random"))
+ (substitute* "HTMLcalendar.py"
+ (("import regex") "import re as regex"))
+ (substitute* "HTMLutil.py"
+ (("import string, regex") "import re as regex\nimport string"))
+ (substitute* "HTMLtest.py"
+ (("import string, regex, regsub") "import re as regex\nimport string")
+ (("regsub.split") "re.split"))
+ #t))
+ (replace 'build
+ (lambda _
+ (invoke "python" "-m" "compileall" ".")))
+ (replace 'check
+ (lambda _
+ (invoke "python" "HTMLtest.py")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (lib (string-append out "/lib/python2.7/site-packages/htmlgen/")))
+ ;; Install libs and headers.
+ (for-each (lambda (file)
+ (install-file file lib))
+ (find-files "." "\\.py[c]?$"))
+ #t))))))
+ (home-page "https://packages.debian.org/unstable/python/python-htmlgen")
+ (synopsis "Genenetwork version of Python2 HTMLgen (defunkt project)")
+ (description #f)
+ (license #f)))
+
; penguin2:~/tmp$ env IPFS_PATH=/export/ipfs/ ipfs add -r Imaging/
; added QmV8Rew1re8gBTLsaqMU4bd7euFUPEpjiD572mtoz6KhPn Imaging/Imaging-1.1.6-gn.tar.gz
; added QmdkzQpVMLZVtywpYesynt9c7H8w7hHZRYKq8woN7stfpD Imaging