gnu: units: Add python input.
* gnu/packages/maths.scm (units)[inputs]: New field. [arguments]: New field. Add 'wrap-units_cur phase.
This commit is contained in:
parent
f11d2849a1
commit
0498d24866
|
@ -200,6 +200,19 @@ programming languages.")
|
||||||
(sha256 (base32
|
(sha256 (base32
|
||||||
"11hnp3gcmcc5kci2caxw4hs6m08h2mhqs3xzqq7iafx1ha2ggwyw"))))
|
"11hnp3gcmcc5kci2caxw4hs6m08h2mhqs3xzqq7iafx1ha2ggwyw"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(inputs
|
||||||
|
`(("python" ,python-wrapper) ;for 'units_cur' script
|
||||||
|
("python-requests" ,python-requests)))
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'install 'wrap-units_cur
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin")))
|
||||||
|
(wrap-program (string-append bin "/units_cur")
|
||||||
|
`("PYTHONPATH" ":" prefix
|
||||||
|
,(search-path-as-string->list (getenv "PYTHONPATH"))))
|
||||||
|
#t))))))
|
||||||
(synopsis "Conversion between thousands of scales")
|
(synopsis "Conversion between thousands of scales")
|
||||||
(description
|
(description
|
||||||
"GNU Units converts numeric quantities between units of measure. It
|
"GNU Units converts numeric quantities between units of measure. It
|
||||||
|
|
Loading…
Reference in New Issue