all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: [PATCH] Fixes for MISO.
Date: Wed, 17 Jun 2015 12:20:34 +0200	[thread overview]
Message-ID: <idjfv5qprf1.fsf@bimsb-sys02.mdc-berlin.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

The current recipe for MISO fails to install the executables.  The first
patch fixes this by patching "setup.py" to use "setuptools" rather than
"distutils.core".  It also adds new native inputs, because these
executables require testing.

The second patch changes the protocol of the tarball URL from http to
https; pypi redirects to https.

~~ Ricardo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-miso-Install-executables.patch --]
[-- Type: text/x-patch, Size: 1913 bytes --]

From b8c6ece9d658969a0ce8054e368df96ce293c30f Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 17 Jun 2015 12:14:39 +0200
Subject: [PATCH 1/2] gnu: miso: Install executables.

* gnu/packages/bioinformatics.scm (miso)[source]: Patch "setup.py" to use
  "setuptools" so that executables are built.
* gnu/packages/bioinformatics.scm (miso)[native-inputs]: Add "python2-mock"
  and "python2-pytz".
---
 gnu/packages/bioinformatics.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 4a55040..30bc581 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1301,9 +1301,12 @@ sequencing tag position and orientation.")
                (base32
                 "0x446867az8ir0z8c1vjqffkp0ma37wm4sylixnkhgawllzx8v5w"))
               (modules '((guix build utils)))
-              ;; use "gcc" instead of "cc" for compilation
               (snippet
                '(substitute* "setup.py"
+                  ;; Use setuptools, or else the executables are not
+                  ;; installed.
+                  (("distutils.core") "setuptools")
+                  ;; use "gcc" instead of "cc" for compilation
                   (("^defines")
                    "cc.set_executables(
 compiler='gcc',
@@ -1321,7 +1324,9 @@ linker_so='gcc -shared'); defines")))))
        ("python-scipy" ,python2-scipy)
        ("python-matplotlib" ,python2-matplotlib)))
     (native-inputs
-     `(("python-setuptools" ,python2-setuptools)))
+     `(("python-mock" ,python2-mock) ;for tests
+       ("python-pytz" ,python2-pytz) ;for tests
+       ("python-setuptools" ,python2-setuptools)))
     (home-page "http://genes.mit.edu/burgelab/miso/index.html")
     (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
     (description
-- 
2.1.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-miso-Use-HTTPS-URL.patch --]
[-- Type: text/x-patch, Size: 1008 bytes --]

From 062066c95d8dca286feb063f544f20a686b00d7e Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 17 Jun 2015 12:16:40 +0200
Subject: [PATCH 2/2] gnu: miso: Use HTTPS URL.

* gnu/packages/bioinformatics.scm (miso)[source]: Use "https" protocol for
  downloading the source tarball.
---
 gnu/packages/bioinformatics.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 30bc581..e43021d 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1295,7 +1295,7 @@ sequencing tag position and orientation.")
     (source (origin
               (method url-fetch)
               (uri (string-append
-                    "http://pypi.python.org/packages/source/m/misopy/misopy-"
+                    "https://pypi.python.org/packages/source/m/misopy/misopy-"
                     version ".tar.gz"))
               (sha256
                (base32
-- 
2.1.0


             reply	other threads:[~2015-06-17 10:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 10:20 Ricardo Wurmus [this message]
2015-06-23 12:50 ` [PATCH] Fixes for MISO Ludovic Courtès
2015-06-23 12:54   ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=idjfv5qprf1.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.