mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 16:06:16 -05:00
gnu: python-astroml: Make compatible with recent Matplot and Scipy.
* gnu/packages/astronomy.scm (python-astroml)[arguments]: Add phases 'matplotlib-compatibility and 'scipy-compatibility. Change-Id: Id88cf769f705f9326f41f951403583155bcee58f
This commit is contained in:
parent
579b35ddd1
commit
dc1719cba4
1 changed files with 11 additions and 0 deletions
|
@ -572,6 +572,17 @@ (define-public python-astroml
|
|||
;; Do not test examples
|
||||
(("testspaths = astroML doc examples")
|
||||
"testspaths = astroML"))))
|
||||
(add-after 'unpack 'matplotlib-compatibility
|
||||
(lambda _
|
||||
(substitute* "astroML/plotting/tools.py"
|
||||
(("^( *)ax.(lines|patches|tables|artists|images).clear.*" _ indent type)
|
||||
(string-append indent "for art in ax." type ":\n"
|
||||
indent " art.remove()\n")))))
|
||||
;; See commit e1c779de1f0ce4cb499dbda6c23d14f76b98e430
|
||||
(add-after 'unpack 'scipy-compatibility
|
||||
(lambda _
|
||||
(substitute* "astroML/dimensionality/iterative_pca.py"
|
||||
(("sym_pos=True") "assume_a=\"pos\""))))
|
||||
(add-before 'check 'pre-check
|
||||
;; Some tests need this
|
||||
(lambda _
|
||||
|
|
Loading…
Reference in a new issue