45 lines
971 B
Nix
45 lines
971 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, colorama
|
|
, tqdm
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, ffmpeg
|
|
, procps
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ffmpeg-progress-yield";
|
|
version = "0.7.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gBWkoR0cJdcWShX9aIDt6DpK1dkT9bfvgnrgXGgZPSQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ colorama tqdm ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ffmpeg procps ];
|
|
|
|
disabledTests = [
|
|
"test_quit"
|
|
"test_quit_gracefully"
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/slhck/ffmpeg-progress-yield/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ prusnak ];
|
|
};
|
|
}
|