python3Packages.ffmpeg-python: use pyproject

This commit is contained in:
Emily
2024-08-09 23:02:03 +01:00
parent bdcd19eff5
commit ca80d70436
@@ -2,21 +2,19 @@
lib,
buildPythonPackage,
fetchFromGitHub,
ffmpeg_4,
future,
pytest-mock,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
substituteAll,
setuptools,
future,
pytestCheckHook,
pytest-mock,
ffmpeg_4,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "ffmpeg-python";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
pyproject = true;
src = fetchFromGitHub {
owner = "kkroening";
@@ -25,13 +23,6 @@ buildPythonPackage rec {
hash = "sha256-Dk3nHuYVlIiFF6nORZ5TVFkBXdoZUxLfoiz68V1tvlY=";
};
propagatedBuildInputs = [ future ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
patches = [
(substituteAll {
src = ./ffmpeg-location.patch;
@@ -39,6 +30,15 @@ buildPythonPackage rec {
})
];
build-system = [ setuptools ];
dependencies = [ future ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
@@ -48,10 +48,10 @@ buildPythonPackage rec {
disabledTests = lib.optionals (pythonAtLeast "3.10") [ "test__output__video_size" ];
meta = with lib; {
meta = {
description = "Python bindings for FFmpeg - with complex filtering support";
homepage = "https://github.com/kkroening/ffmpeg-python";
license = licenses.asl20;
license = lib.licenses.asl20;
maintainers = [ ];
};
}