2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, colorama
|
|
|
|
, tqdm
|
|
|
|
, pytestCheckHook
|
|
|
|
, ffmpeg
|
2023-01-20 10:41:00 +00:00
|
|
|
, procps
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ffmpeg-progress-yield";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.6.1";
|
|
|
|
format = "setuptools";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-JLwvJcYcSe5Z7In34pQqHptd8TCrXJeJ6zPiGGv4T14=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ colorama tqdm ];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
checkInputs = [ pytestCheckHook ffmpeg procps ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_quit"
|
|
|
|
"test_quit_gracefully"
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|