[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#64732] [PATCH v2 1/2] gnu: Add python-ffmpeg-python.
From: |
Parnikkapore |
Subject: |
[bug#64732] [PATCH v2 1/2] gnu: Add python-ffmpeg-python. |
Date: |
Thu, 20 Jul 2023 22:51:46 +0700 |
* gnu/packages/python-xyz.scm (python-ffmpeg-python): New variable.
---
gnu/packages/python-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 755b0af4b6..9097f3f027 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -139,6 +139,7 @@
;;; Copyright © 2023 Dominik Delgado Steuter <d@delgado.nrw>
;;; Copyright © 2023 Ivan Vilata-i-Balaguer <ivan@selidor.net>
;;; Copyright © 2023 Ontje Lünsdorf <ontje.luensdorf@dlr.de>
+;;; Copyright © 2023 Parnikkapore <poomklao@yahoo.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -8918,6 +8919,55 @@ (define-public python-lfdfiles
experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
(license license:bsd-3)))
+(define-public python-ffmpeg-python
+ (package
+ (name "python-ffmpeg-python")
+ (version "0.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kkroening/ffmpeg-python.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f"))
+ (snippet
+ #~(begin
+ (use-modules (guix build utils))
+ (substitute* "ffmpeg/_run.py"
+ (("collections\\.Iterable")
+ "collections.abc.Iterable"))))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda* _
+ (substitute* "ffmpeg/tests/test_ffmpeg.py"
+ (("([ \t]*)def test_pipe\\(" all indent)
+ (string-append indent
+ "@pytest.mark.skip"
+ "(reason=\"Not working under FFmpeg 5+\")\n"
+ all))
+ (("([ \t]*)def test__probe\\(" all indent)
+ (string-append indent
+ "@pytest.mark.skip"
+ "(reason=\"Not working under FFmpeg 5+\")\n"
+ all))))))))
+ (inputs (list python-future))
+ (propagated-inputs (list ffmpeg))
+ (native-inputs (list python-future python-numpy python-pytest
+ python-pytest-mock python-pytest-runner))
+ (home-page "https://github.com/kkroening/ffmpeg-python")
+ (synopsis "Python bindings for FFmpeg - with complex filtering support")
+ (description
+ "ffmpeg-python allows you to write FFmpeg filtergraphs in familiar
+Python terms, taking care of running ffmpeg with the correct command-line
+arguments. It handles arbitrarily large (directed-acyclic) signal graphs.")
+ (license license:asl2.0)))
+
(define-public python-imageio-ffmpeg
(package
(name "python-imageio-ffmpeg")
base-commit: 1d837aaa32a3a2de8f4a1ac391f92effba50834e
--
2.41.0
- [bug#64732] [PATCH 0/2] Add r128gain, Parnikkapore, 2023/07/19
- [bug#64732] [PATCH 2/2] gnu: Add r128gain., Parnikkapore, 2023/07/19
- [bug#64732] [PATCH 1/2] gnu: Add python-ffmpeg-python., Parnikkapore, 2023/07/19
- [bug#64732] [PATCH 1/2] gnu: Add python-ffmpeg-python., jgart, 2023/07/19
- [bug#64732] [PATCH v2 1/2] gnu: Add python-ffmpeg-python.,
Parnikkapore <=
- [bug#64732] [PATCH v2 2/2] gnu: Add r128gain., Parnikkapore, 2023/07/20
- Message not available
- [bug#64732] [PATCH v2 1/2] gnu: Add python-ffmpeg-python., jgart, 2023/07/20
- [bug#64732] [PATCH v3 1/2] gnu: Add python-ffmpeg-python., Parnikkapore, 2023/07/21
- [bug#64732] [PATCH v3 2/2] gnu: Add r128gain., Parnikkapore, 2023/07/21
- Message not available
- [bug#64732] [PATCH v3 1/2] gnu: Add python-ffmpeg-python., jgart, 2023/07/22
- [bug#64732] [PATCH v3 1/2] gnu: Add python-ffmpeg-python., Parnikkapore, 2023/07/22
- Message not available
- [bug#64732] [PATCH v3 1/2] gnu: Add python-ffmpeg-python., jgart, 2023/07/22
- [bug#64732] [PATCH v3 1/2] gnu: Add python-ffmpeg-python., Lars-Dominik Braun, 2023/07/22
- [bug#64732] [PATCH v3 1/2] gnu: Add python-ffmpeg-python., jgart, 2023/07/22
- [bug#64732] [PATCH v3 1/2] gnu: Add python-ffmpeg-python., jgart, 2023/07/24