diff options
| author | Emily <vcs@emily.moe> | 2024-08-04 00:18:44 +0100 |
|---|---|---|
| committer | Emily <vcs@emily.moe> | 2024-08-09 23:02:03 +0100 |
| commit | ca80d70436a87dfc4e5d04c5d9446fab6a6ec15e (patch) | |
| tree | 875e12d9f4883fd18c440668957f71298b416ce7 /pkgs/development/python-modules/ffmpeg-python | |
| parent | bdcd19eff5d2b9f596934bfd900cc8fdcd54489c (diff) | |
python3Packages.ffmpeg-python: use `pyproject`
Diffstat (limited to 'pkgs/development/python-modules/ffmpeg-python')
| -rw-r--r-- | pkgs/development/python-modules/ffmpeg-python/default.nix | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/ffmpeg-python/default.nix b/pkgs/development/python-modules/ffmpeg-python/default.nix index 5db6107c918b..cc0ac60abc6b 100644 --- a/pkgs/development/python-modules/ffmpeg-python/default.nix +++ b/pkgs/development/python-modules/ffmpeg-python/default.nix @@ -2,21 +2,19 @@ lib, buildPythonPackage, fetchFromGitHub, - ffmpeg_4, + substituteAll, + setuptools, future, - pytest-mock, pytestCheckHook, + pytest-mock, + ffmpeg_4, pythonAtLeast, - pythonOlder, - substituteAll, }: 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 = [ ]; }; } |
