gnu: python-imageio-ffmpeg: Improve style.

* gnu/packages/python-xyz.scm (python-imageio-ffmpeg): Improve style.

Change-Id: I2fe41000a9eb05d0e6b7e0adfecd8a55ad42ef0c
This commit is contained in:
Sharlatan Hellseher 2025-07-18 14:38:01 +01:00
parent 43b681535d
commit 95dea35990
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -12990,33 +12990,38 @@ arguments. It handles arbitrarily large (directed-acyclic) signal graphs.")
(define-public python-imageio-ffmpeg (define-public python-imageio-ffmpeg
(package (package
(name "python-imageio-ffmpeg") (name "python-imageio-ffmpeg")
(version "0.5.1") (version "0.5.1")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "imageio-ffmpeg" version)) (method url-fetch)
(sha256 (uri (pypi-uri "imageio-ffmpeg" version))
(base32 (sha256
"0k284r1xsdp5h1s4k6nfsfzbkphf8g6r2llwjafhq2sn3yrskmqf")))) (base32 "0k284r1xsdp5h1s4k6nfsfzbkphf8g6r2llwjafhq2sn3yrskmqf"))))
(arguments (build-system pypthon-build-system)
(list #:phases (arguments
#~(modify-phases %standard-phases (list
(add-after 'unpack 'hardcode-ffmpeg #:phases
(lambda* (#:key inputs #:allow-other-keys) #~(modify-phases %standard-phases
(substitute* "imageio_ffmpeg/_utils.py" (add-after 'unpack 'hardcode-ffmpeg
(("os\\.getenv\\(\"IMAGEIO_FFMPEG_EXE\".*\\)" all) (lambda* (#:key inputs #:allow-other-keys)
(string-append "(" all " or \"" (substitute* "imageio_ffmpeg/_utils.py"
(search-input-file inputs "bin/ffmpeg") (("os\\.getenv\\(\"IMAGEIO_FFMPEG_EXE\".*\\)" all)
"\")")))))))) (string-append "(" all " or \""
(inputs (list ffmpeg)) (search-input-file inputs "bin/ffmpeg")
(native-inputs (list python-setuptools python-wheel)) "\")"))))))))
(build-system python-build-system) (native-inputs
(home-page "https://github.com/imageio/imageio-ffmpeg") (list python-setuptools
(synopsis "FFMPEG wrapper for Python") python-wheel))
(description "This package provides an FFMPEG wrapper for working with video (inputs
files. It implements generator functions for reading and writing data to and (list ffmpeg))
from FFMPEG, reliably terminating the process when done.") (home-page "https://github.com/imageio/imageio-ffmpeg")
(license license:bsd-2))) (synopsis "FFMPEG wrapper for Python")
(description
"This package provides an FFMPEG wrapper for working with video files.
It implements generator functions for reading and writing data to and from
FFMPEG, reliably terminating the process when done.")
(license license:bsd-2)))
(define-public python-imageio-freeimage (define-public python-imageio-freeimage
(package (package