python3Packages.ffmpeg-progress-yield: fix build on Darwin (#440714)

Changed files
+11
pkgs
development
python-modules
ffmpeg-progress-yield
+11
pkgs/development/python-modules/ffmpeg-progress-yield/default.nix
···
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
···
];
enabledTestPaths = [ "test/test.py" ];
pythonImportsCheck = [ "ffmpeg_progress_yield" ];
···
{
lib,
+
stdenv,
buildPythonPackage,
fetchFromGitHub,
setuptools,
···
];
enabledTestPaths = [ "test/test.py" ];
+
+
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" ];