2020-02-11 15:02:07 -03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-08-04 00:18:44 +01:00
|
|
|
substituteAll,
|
2024-08-04 00:38:57 +01:00
|
|
|
fetchpatch2,
|
2024-08-04 00:18:44 +01:00
|
|
|
setuptools,
|
2022-03-05 10:10:30 +01:00
|
|
|
pytestCheckHook,
|
2024-08-04 00:18:44 +01:00
|
|
|
pytest-mock,
|
|
|
|
ffmpeg_4,
|
2020-02-11 15:02:07 -03:00
|
|
|
}:
|
|
|
|
|
2024-08-04 00:26:49 +01:00
|
|
|
buildPythonPackage {
|
2020-02-11 15:02:07 -03:00
|
|
|
pname = "ffmpeg-python";
|
2024-08-04 00:26:49 +01:00
|
|
|
version = "0.2.0-unstable-2022-07-11";
|
2024-08-04 00:18:44 +01:00
|
|
|
pyproject = true;
|
2020-02-11 15:02:07 -03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kkroening";
|
|
|
|
repo = "ffmpeg-python";
|
2024-08-04 00:26:49 +01:00
|
|
|
rev = "df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6";
|
|
|
|
hash = "sha256-jPiFhYRwfuS+vo6LsLw0+65NWy2A+B+EdC8SewZTRP4=";
|
2020-02-11 15:02:07 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-04-26 16:51:33 -03:00
|
|
|
(substituteAll {
|
|
|
|
src = ./ffmpeg-location.patch;
|
2023-03-03 19:41:10 +01:00
|
|
|
ffmpeg = ffmpeg_4;
|
2021-04-26 16:51:33 -03:00
|
|
|
})
|
2024-08-04 00:38:57 +01:00
|
|
|
|
|
|
|
# Remove dependency on `future`
|
|
|
|
# https://github.com/kkroening/ffmpeg-python/pull/795
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/kkroening/ffmpeg-python/commit/dce459d39ace25f03edbabdad1735064787568f7.patch?full_index=1";
|
|
|
|
hash = "sha256-ZptCFplL88d0p2s741ymHiwyDsDGVFylBJ8FTrZDGMc=";
|
|
|
|
})
|
2020-02-11 15:02:07 -03:00
|
|
|
];
|
|
|
|
|
2024-08-04 00:18:44 +01:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
2022-03-05 10:10:30 +01:00
|
|
|
pythonImportsCheck = [ "ffmpeg" ];
|
|
|
|
|
2024-08-04 00:18:44 +01:00
|
|
|
meta = {
|
2020-02-11 15:02:07 -03:00
|
|
|
description = "Python bindings for FFmpeg - with complex filtering support";
|
|
|
|
homepage = "https://github.com/kkroening/ffmpeg-python";
|
2024-08-04 00:18:44 +01:00
|
|
|
license = lib.licenses.asl20;
|
2024-08-09 23:04:17 +01:00
|
|
|
maintainers = [ lib.maintainers.emily ];
|
2020-02-11 15:02:07 -03:00
|
|
|
};
|
|
|
|
}
|