mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 20:57:12 -05:00
gnu: python2-matplotlib: Fix mpl_toolkits module.
* gnu/packages/python-xyz.scm (python2-matplotlib)[arguments]: Add phase 'create-init-file; restore 'sanity-check phase.
This commit is contained in:
parent
b69156ef30
commit
3cd37c94bd
1 changed files with 8 additions and 1 deletions
|
@ -6379,8 +6379,15 @@ (define-public python2-matplotlib
|
|||
(invoke "unzip"
|
||||
(assoc-ref inputs "jquery-ui")
|
||||
"-d" dir))))
|
||||
;; Without this file mpl_toolkits cannot be imported.
|
||||
(add-after 'install 'create-init-file
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(with-output-to-file
|
||||
(string-append
|
||||
(assoc-ref outputs "out")
|
||||
"/lib/python2.7/site-packages/mpl_toolkits/__init__.py")
|
||||
(lambda _ (display "")))))
|
||||
(delete 'fix-and-disable-failing-tests)
|
||||
(delete 'sanity-check) ; This fails because mpl_toolkits is not an actual module
|
||||
(delete 'check))))) ; These tests weren't run the the past.
|
||||
;; Make sure to use special packages for Python 2 instead
|
||||
;; of those automatically rewritten by package-with-python2.
|
||||
|
|
Loading…
Reference in a new issue