unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add numpydoc.
@ 2014-11-26 16:50 Federico Beffa
  2014-11-26 22:01 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Federico Beffa @ 2014-11-26 16:50 UTC (permalink / raw)
  To: Guix-devel

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

Please find attached a package definition for numpydoc.

Regards,
Fede

[-- Attachment #2: 0001-gnu-Add-numpydoc.patch --]
[-- Type: text/x-patch, Size: 1891 bytes --]

From 5f376151471f30864ab96fb3e9f661ddf58bff82 Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Wed, 26 Nov 2014 17:29:16 +0100
Subject: [PATCH] gnu: Add numpydoc.

* gnu/packages/python.scm (python-numpydoc, python2-numpydoc): New variables.
---
 gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c0eea3c..68dc67f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1981,3 +1981,37 @@ that client code uses to construct the grammar directly in Python code.")
 (define-public python2-pyparsing
   (package-with-python2 python-pyparsing))
 
+(define-public python-numpydoc
+  (package
+    (name "python-numpydoc")
+    (version "0.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append 
+             "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-docutils" ,python-docutils)
+       ("python-sphinx" ,python-sphinx)
+       ("python-nose" ,python-nose)))
+    (home-page "https://pypi.python.org/pypi/numpydoc")
+    (synopsis
+     "Numpy's Sphinx extensions")
+    (description
+     "Sphinx extension to support docstrings in Numpy format.")
+    (license bsd-2)))
+
+(define-public python2-numpydoc
+  (package 
+    (inherit (package-with-python2 python-numpydoc))
+    ;; With python-2 1 test (out of 30) fails because it doesn't find
+    ;; matplotlib.  With python-3 it seems to detect at run-time the absence
+    ;; of matplotlib.
+    (arguments `(#:tests? #f
+                 #:python ,python-2))))
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gnu: Add numpydoc.
  2014-11-26 16:50 [PATCH] gnu: Add numpydoc Federico Beffa
@ 2014-11-26 22:01 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-11-26 22:01 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> From 5f376151471f30864ab96fb3e9f661ddf58bff82 Mon Sep 17 00:00:00 2001
> From: Federico Beffa <beffa@fbengineering.ch>
> Date: Wed, 26 Nov 2014 17:29:16 +0100
> Subject: [PATCH] gnu: Add numpydoc.
>
> * gnu/packages/python.scm (python-numpydoc, python2-numpydoc): New variables.

LGTM, thanks.

Ludo'.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-26 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26 16:50 [PATCH] gnu: Add numpydoc Federico Beffa
2014-11-26 22:01 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).