From 40fad25a6348530b286ecc43eda7ffa1604f80b3 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 20 Jan 2022 15:39:12 +0100 Subject: [PATCH v6 01/28] gnu: Add python-imageio-ffmpeg. * gnu/packages/python-xyz.scm (python-imageio-ffmpeg): New variable. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 44eeb0d7fe..948125df46 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27162,6 +27162,38 @@ (define-public python-json5 dumping of JSON5 data structures.") (license license:asl2.0))) +(define-public python-imageio-ffmpeg + (package + (name "python-imageio-ffmpeg") + (version "0.4.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "imageio-ffmpeg" version)) + (sha256 + (base32 "0gkjkrmgbdcfqx010hp23ymrkp1zzmjbh88qliyf6qzkjy7q623s")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ;; Most tests download data (use the git url) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'set-ffmpeg-exe + (lambda* (#:key inputs #:allow-other-keys) + ;; There are different strategies to find ffmpeg, we + ;; only fix the last resort, "system ffmpeg command" + (substitute* "imageio_ffmpeg/_utils.py" + (("exe = \"ffmpeg\"") + (format #f "exe = ~s" + (search-input-file + inputs "/bin/ffmpeg"))))))))) + (inputs (list ffmpeg)) + (home-page "https://github.com/imageio/imageio-ffmpeg") + (synopsis "@samp{ffmpeg} wrapper for Python") + (description + "The purpose of this project is to wrap the @command{ffmpeg} executable +for working with video files.") + (license license:bsd-2))) + (define-public python-frozendict (package (name "python-frozendict") base-commit: 6b819f82857c5c2515d579dce94e89ea7d8547fd -- 2.36.1