Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 63 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, stdenv, buildPythonPackage, fetchFromGitHub, uv-build, tqdm, pytest-asyncio, pytestCheckHook, ffmpeg, procps, versionCheckHook,}:
buildPythonPackage rec { pname = "ffmpeg-progress-yield"; version = "1.1.3"; pyproject = true;
src = fetchFromGitHub { owner = "slhck"; repo = "ffmpeg-progress-yield"; tag = "v${version}"; hash = "sha256-OEE23gzPYcjKjrar+aV2zZuZyhrvqkYPhnWC3GzefUI="; };
build-system = [ uv-build ];
dependencies = [ tqdm ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ffmpeg procps ];
disabledTests = lib.optional stdenv.hostPlatform.isDarwin [ # cannot access /usr/bin/pgrep from the sandbox "test_context_manager" "test_context_manager_with_exception" "test_automatic_cleanup_on_exception" "test_async_context_manager" "test_async_context_manager_with_exception" "test_async_automatic_cleanup_on_exception" ];
pythonImportsCheck = [ "ffmpeg_progress_yield" ];
nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true;
meta = { 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/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ prusnak ]; };}