gnu: python-matplotlib: Don't hardcode python version.

* gnu/packages/python-xyz.scm (python-matplotlib)[arguments]: In custom
'install-jquery-ui phase programmatically get the version of python.
This commit is contained in:
Efraim Flashner 2021-05-24 16:13:35 +03:00
parent 67ac4348d4
commit 4ea6161046
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -5563,8 +5563,11 @@ convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.
#t))
(add-before 'install 'install-jquery-ui
(lambda* (#:key outputs inputs #:allow-other-keys)
(let ((dir (string-append (assoc-ref outputs "out")
"/lib/python3.7/site-packages/matplotlib/backends/web_backend/")))
(let* ((python-version (python-version
(assoc-ref inputs "python")))
(dir (string-append (assoc-ref outputs "out")
"/lib/python" python-version "/site-packages"
"/matplotlib/backends/web_backend/")))
(mkdir-p dir)
(invoke "unzip"
(assoc-ref inputs "jquery-ui")