1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 tqdm, 7 pytestCheckHook, 8 pythonOlder, 9 ffmpeg, 10 procps, 11}: 12 13buildPythonPackage rec { 14 pname = "ffmpeg-progress-yield"; 15 version = "0.11.3"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "slhck"; 22 repo = "ffmpeg-progress-yield"; 23 tag = "v${version}"; 24 hash = "sha256-o5PlL6Ggo0Mrs/ujdnTV5GMAVeG2wpBoBDfxTVic3mA="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 tqdm 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ffmpeg 36 procps 37 ]; 38 39 disabledTests = [ 40 "test_quit" 41 "test_quit_gracefully" 42 ]; 43 44 pytestFlagsArray = [ "test/test.py" ]; 45 46 pythonImportsCheck = [ "ffmpeg_progress_yield" ]; 47 48 meta = with lib; { 49 description = "Run an ffmpeg command with progress"; 50 mainProgram = "ffmpeg-progress-yield"; 51 homepage = "https://github.com/slhck/ffmpeg-progress-yield"; 52 changelog = "https://github.com/slhck/ffmpeg-progress-yield/blob/v${version}/CHANGELOG.md"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ prusnak ]; 55 }; 56}