summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorFederico Beffa <beffa@fbengineering.ch>2014-11-26 17:29:16 +0100
committerFederico Beffa <beffa@fbengineering.ch>2014-11-27 09:50:47 +0100
commitec00de358ed0df0a82b8520407f5e1440973ac93 (patch)
tree9853001c3648ed2bf934e54249e3f184eabcf39e /gnu
parent598e19dca1677aebfe235e974f480b5bdd322694 (diff)
gnu: Add numpydoc.
* gnu/packages/python.scm (python-numpydoc, python2-numpydoc): New variables.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c0eea3c6317..68dc67f1f24 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.")
1981(define-public python2-pyparsing 1981(define-public python2-pyparsing
1982 (package-with-python2 python-pyparsing)) 1982 (package-with-python2 python-pyparsing))
1983 1983
1984(define-public python-numpydoc
1985 (package
1986 (name "python-numpydoc")
1987 (version "0.5")
1988 (source
1989 (origin
1990 (method url-fetch)
1991 (uri (string-append
1992 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
1993 version ".tar.gz"))
1994 (sha256
1995 (base32
1996 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))))
1997 (build-system python-build-system)
1998 (inputs
1999 `(("python-setuptools" ,python-setuptools)
2000 ("python-docutils" ,python-docutils)
2001 ("python-sphinx" ,python-sphinx)
2002 ("python-nose" ,python-nose)))
2003 (home-page "https://pypi.python.org/pypi/numpydoc")
2004 (synopsis
2005 "Numpy's Sphinx extensions")
2006 (description
2007 "Sphinx extension to support docstrings in Numpy format.")
2008 (license bsd-2)))
2009
2010(define-public python2-numpydoc
2011 (package
2012 (inherit (package-with-python2 python-numpydoc))
2013 ;; With python-2 1 test (out of 30) fails because it doesn't find
2014 ;; matplotlib. With python-3 it seems to detect at run-time the absence
2015 ;; of matplotlib.
2016 (arguments `(#:tests? #f
2017 #:python ,python-2))))