summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ffmpeg-python
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-03-05 10:10:30 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-03-05 10:10:30 +0100
commit015c16f87e503c87cf08d6c4ca9fe8327ba35847 (patch)
tree5dc60f801d9486ab3be5004c6a0683a94dc7fe82 /pkgs/development/python-modules/ffmpeg-python
parent85e428b8e4b8fccafffa3a54a245fc58d4c14784 (diff)
python3Packages.ffmpeg-python: disable failing test on Python 3.10
Diffstat (limited to 'pkgs/development/python-modules/ffmpeg-python')
-rw-r--r--pkgs/development/python-modules/ffmpeg-python/default.nix38
1 files changed, 30 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/ffmpeg-python/default.nix b/pkgs/development/python-modules/ffmpeg-python/default.nix
index 1f8c6983cbd8..f514cf325371 100644
--- a/pkgs/development/python-modules/ffmpeg-python/default.nix
+++ b/pkgs/development/python-modules/ffmpeg-python/default.nix
@@ -1,25 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
-, substituteAll
-, pytestCheckHook
, ffmpeg
, future
-, pytest-runner
, pytest-mock
+, pytestCheckHook
+, pythonAtLeast
+, pythonOlder
+, substituteAll
}:
buildPythonPackage rec {
pname = "ffmpeg-python";
version = "0.2.0";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kkroening";
repo = "ffmpeg-python";
rev = version;
- sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f";
+ hash = "sha256-Dk3nHuYVlIiFF6nORZ5TVFkBXdoZUxLfoiz68V1tvlY=";
};
+ propagatedBuildInputs = [
+ future
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ pytest-mock
+ ];
+
patches = [
(substituteAll {
src = ./ffmpeg-location.patch;
@@ -27,14 +40,23 @@ buildPythonPackage rec {
})
];
- buildInputs = [ pytest-runner ];
- propagatedBuildInputs = [ future ];
- checkInputs = [ pytestCheckHook pytest-mock ];
+ postPatch = ''
+ substituteInPlace setup.py \
+ --replace "'pytest-runner'" ""
+ '';
+
+ pythonImportsCheck = [
+ "ffmpeg"
+ ];
+
+ disabledTests = lib.optionals (pythonAtLeast "3.10") [
+ "test__output__video_size"
+ ];
meta = with lib; {
description = "Python bindings for FFmpeg - with complex filtering support";
homepage = "https://github.com/kkroening/ffmpeg-python";
license = licenses.asl20;
- maintainers = [ maintainers.AluisioASG ];
+ maintainers = with maintainers; [ AluisioASG ];
};
}