2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, substituteAll
|
2021-05-03 20:48:10 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, ffmpeg
|
2020-04-24 23:36:52 +00:00
|
|
|
, future
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-runner
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ffmpeg-python";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kkroening";
|
|
|
|
repo = "ffmpeg-python";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-05-03 20:48:10 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./ffmpeg-location.patch;
|
|
|
|
inherit ffmpeg;
|
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
buildInputs = [ pytest-runner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ future ];
|
2021-05-03 20:48:10 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|