Archived
1
0
Fork 0

gnu: macs: Update to 2.2.9.1.

* gnu/packages/bioinformatics.scm (macs): Update to 2.2.9.1.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase.
[native-inputs]: Move python-cython from here...
[inputs]: ...and python-numpy from here...
[propagated-inputs]: ...to here.
This commit is contained in:
Ricardo Wurmus 2023-09-12 12:26:41 +02:00
parent e2a7c227de
commit 30ec6f2fb5
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -7023,7 +7023,7 @@ experiments.")
(define-public macs (define-public macs
(package (package
(name "macs") (name "macs")
(version "2.2.7.1") (version "2.2.9.1")
(source (origin (source (origin
;; The PyPi tarball does not contain tests. ;; The PyPi tarball does not contain tests.
(method git-fetch) (method git-fetch)
@ -7033,7 +7033,7 @@ experiments.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"08zsgh65xbpv1md2s3wqmrk9g2mz6izmn59ryw5lbac54120p291")) "10vwc09fq4nvbd39hax1949mvq2wvkgz0k3p2zqmqwq8hv9r5l0j"))
(modules '((guix build utils))) (modules '((guix build utils)))
;; Remove files generated by Cython ;; Remove files generated by Cython
(snippet (snippet
@ -7048,21 +7048,17 @@ experiments.")
;; Python 3.10 is in fact more recent than 3.6. ;; Python 3.10 is in fact more recent than 3.6.
(substitute* "setup.py" (substitute* "setup.py"
(("float\\(sys.version\\[:3\\]\\)<3.6") "False")))))) (("float\\(sys.version\\[:3\\]\\)<3.6") "False"))))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'build 'set-HOME (add-before 'build 'set-HOME
(lambda _ (setenv "HOME" "/tmp"))) (lambda _ (setenv "HOME" "/tmp"))))))
(replace 'check ;; Propagate these for use of macs as a library.
(lambda* (#:key tests? inputs outputs #:allow-other-keys) (propagated-inputs
(when tests? (list python-cython python-numpy))
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v")))))))
(inputs
(list python-numpy))
(native-inputs (native-inputs
(list python-cython python-pytest)) (list python-pytest))
(home-page "https://github.com/macs3-project/MACS") (home-page "https://github.com/macs3-project/MACS")
(synopsis "Model based analysis for ChIP-Seq data") (synopsis "Model based analysis for ChIP-Seq data")
(description (description