gnu: python-matplotlib: Fix build.

* gnu/packages/python.scm (python-matplotlib, python2-matplotlib): Correct
  inputs. [install-doc] set PYTHONPATH prior to building docs.
This commit is contained in:
Hartmut Goebel 2016-10-09 13:19:50 +02:00
parent 2efabc5589
commit ca33a3ad97
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 14 additions and 11 deletions

View File

@ -3385,6 +3385,11 @@ transcendental functions).")
("python-pygobject" ,python-pygobject) ("python-pygobject" ,python-pygobject)
("gobject-introspection" ,gobject-introspection) ("gobject-introspection" ,gobject-introspection)
("python-tkinter" ,python "tk") ("python-tkinter" ,python "tk")
("python-dateutil" ,python-dateutil-2)
("python-numpy" ,python-numpy-bootstrap)
("python-pillow" ,python-pillow)
("python-pytz" ,python-pytz)
("python-six" ,python-six)
;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
;; from 'gtk+') provides the required 'typelib' files used by ;; from 'gtk+') provides the required 'typelib' files used by
;; 'gobject-introspection'. The location of these files is set with the ;; 'gobject-introspection'. The location of these files is set with the
@ -3401,20 +3406,11 @@ transcendental functions).")
("python-pycairo" ,python-pycairo) ("python-pycairo" ,python-pycairo)
("python-cairocffi" ,python-cairocffi))) ("python-cairocffi" ,python-cairocffi)))
(inputs (inputs
`(("python-dateutil" ,python-dateutil-2) `(("libpng" ,libpng)
("python-six" ,python-six)
("python-pytz" ,python-pytz)
("python-numpy" ,python-numpy-bootstrap)
("python-sphinx" ,python-sphinx)
("python-numpydoc" ,python-numpydoc)
("python-nose" ,python-nose)
("python-mock" ,python-mock)
("libpng" ,libpng)
("imagemagick" ,imagemagick) ("imagemagick" ,imagemagick)
("freetype" ,freetype) ("freetype" ,freetype)
("cairo" ,cairo) ("cairo" ,cairo)
("glib" ,glib) ("glib" ,glib)
("python-pillow" ,python-pillow)
;; FIXME: Add backends when available. ;; FIXME: Add backends when available.
;("python-wxpython" ,python-wxpython) ;("python-wxpython" ,python-wxpython)
;("python-pyqt" ,python-pyqt) ;("python-pyqt" ,python-pyqt)
@ -3422,6 +3418,10 @@ transcendental functions).")
("tk" ,tk))) ("tk" ,tk)))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config) `(("pkg-config" ,pkg-config)
("python-sphinx" ,python-sphinx)
("python-numpydoc" ,python-numpydoc)
("python-nose" ,python-nose)
("python-mock" ,python-mock)
("texlive" ,texlive) ("texlive" ,texlive)
("texinfo" ,texinfo))) ("texinfo" ,texinfo)))
(arguments (arguments
@ -3446,11 +3446,14 @@ backend = TkAgg~%"
(assoc-ref inputs "tk")))))) (assoc-ref inputs "tk"))))))
(alist-cons-after (alist-cons-after
'install 'install-doc 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((data (string-append (assoc-ref outputs "doc") "/share")) (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
(doc (string-append data "/doc/" ,name "-" ,version)) (doc (string-append data "/doc/" ,name "-" ,version))
(info (string-append data "/info")) (info (string-append data "/info"))
(html (string-append doc "/html"))) (html (string-append doc "/html")))
;; Make installed package available for building the
;; documentation
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "doc" (with-directory-excursion "doc"
;; Produce pdf in 'A4' format. ;; Produce pdf in 'A4' format.
(substitute* (find-files "." "conf\\.py") (substitute* (find-files "." "conf\\.py")