2020-02-11 18:02:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, substituteAll
|
2021-04-26 19:51:33 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, ffmpeg
|
2020-02-11 18:02:07 +00:00
|
|
|
, future
|
|
|
|
, pytestrunner
|
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ffmpeg-python";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kkroening";
|
|
|
|
repo = "ffmpeg-python";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-04-26 19:51:33 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./ffmpeg-location.patch;
|
|
|
|
inherit ffmpeg;
|
|
|
|
})
|
2020-02-11 18:02:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ future ];
|
2021-04-26 19:51:33 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-mock ];
|
2020-02-11 18:02:07 +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 ];
|
|
|
|
};
|
|
|
|
}
|