guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: macs: Update to 2.2.6.


From: guix-commits
Subject: branch master updated: gnu: macs: Update to 2.2.6.
Date: Wed, 26 Feb 2020 06:53:30 -0500

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 640d910  gnu: macs: Update to 2.2.6.
640d910 is described below

commit 640d910427f3e7128be3702a261a1bb40264040b
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Wed Feb 26 12:51:57 2020 +0100

    gnu: macs: Update to 2.2.6.
    
    * gnu/packages/bioinformatics.scm (macs): Update to 2.2.6.
    [source]: Fetch from git.
    [arguments]: Enable tests, build with default Python.
    [inputs]: Replace python2-numpy with python-numpy.
    [native-inputs]: Add python-pytest.
---
 gnu/packages/bioinformatics.scm | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 97d766b..7f2a852 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -4274,19 +4274,30 @@ experiments.")
 (define-public macs
   (package
     (name "macs")
-    (version "2.1.1.20160309")
+    (version "2.2.6")
     (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "MACS2" version))
+              ;; The PyPi tarball does not contain tests.
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/taoliu/MACS.git";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
+                "1c5gxr0mk6hkd4vclf0k00wvyvzw2vrmk52c85338p7aqjwg6n15"))))
     (build-system python-build-system)
     (arguments
-     `(#:python ,python-2 ; only compatible with Python 2.7
-       #:tests? #f)) ; no test target
+     `(#:phases
+       (modify-phases %standard-phases
+         (delete 'check)
+         (add-after 'install 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-v"))))))
     (inputs
-     `(("python-numpy" ,python2-numpy)))
+     `(("python-numpy" ,python-numpy)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
     (home-page "https://github.com/taoliu/MACS/";)
     (synopsis "Model based analysis for ChIP-Seq data")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]