Files
Michael Daniels 3a533eb2bc treewide: remove optional cond [...]
Produced by:

```
git cherry-pick 87528a7aa68139810f409bab99cf8f918b928879
nix shell --impure \
    --expr '(import ./ci { }).pkgs.ast-grep' \
    --command ast-grep \
    --config ci/ast-grep/sgconfig.yml \
    scan --warning --update-all .
```

and then fixing two `sema-undefined-variable` violations.

(cherry picked from commit a6479a6e32)
2026-09-08 20:28:40 -04:00

64 lines
1.4 KiB
Nix

{
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.optionals 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 ];
};
}