gnu: vapoursynth: Wrap with own PYTHONPATH.

This fixes, e.g., ‘vspipe -v’ in a pure environment.

* gnu/packages/video.scm (vapoursynth)[arguments]: Add a 'wrap phase.

Reported by maddo of #guix.
This commit is contained in:
Tobias Geerinckx-Rice 2021-05-30 11:51:30 +02:00
parent ae303853d4
commit c00b1760f6
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2817,6 +2817,18 @@ (define-public vapoursynth
(base32
"1krfdzc2x2vxv4nq9kiv1c09hgj525qn120ah91fw2ikq8ldvmx4"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(site (string-append out "/lib/python"
,(version-major+minor
(package-version python))
"/site-packages")))
(wrap-program (string-append out "/bin/vspipe")
`("PYTHONPATH" ":" = (,site)))))))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)