2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, colorama
|
|
|
|
, tqdm
|
|
|
|
, pytestCheckHook
|
|
|
|
, ffmpeg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ffmpeg-progress-yield";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.3.0";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-/FkVzssJZYafn3MlN8bODd7kA917x9oW0JivIOWxl+8=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ colorama tqdm ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ffmpeg ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "test/test.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ffmpeg_progress_yield" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Run an ffmpeg command with progress";
|
|
|
|
homepage = "https://github.com/slhck/ffmpeg-progress-yield";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|