gnu: python2-matplotlib: Fix jquery-ui install path.

* gnu/packages/python-xyz.scm (python2-matplotlib)[arguments]: Override
custom 'install-jquery-ui phase to install in the appropriate directory.
master
Efraim Flashner 2019-09-19 12:29:49 +03:00
parent 5d484f42a8
commit 66a3c2db9b
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 10 additions and 0 deletions

View File

@ -3941,6 +3941,16 @@ toolkits.")
(substitute-keyword-arguments (package-arguments matplotlib)
((#:phases phases)
`(modify-phases ,phases
(replace 'install-jquery-ui
(lambda* (#:key outputs inputs #:allow-other-keys)
(let ((dir (string-append (assoc-ref outputs "out")
"/lib/python2.7/site-packages/"
"matplotlib/backends/web_backend/")))
(mkdir-p dir)
(invoke "unzip"
(assoc-ref inputs "jquery-ui")
"-d" dir))
#t))
(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.