mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
colorama,
|
|
tqdm,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
ffmpeg,
|
|
procps,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ffmpeg-progress-yield";
|
|
version = "0.9.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-n6zHi6M9SyrNm8MhQ9xvBo2OIzoQYJ4yhgujW5C6QWY=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "ffmpeg-progress-yield";
|
|
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 ];
|
|
};
|
|
}
|