diff options
Diffstat (limited to 'pkgs/development/python-modules/ffmpy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/ffmpy/default.nix | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/ffmpy/default.nix b/pkgs/development/python-modules/ffmpy/default.nix index 974e2bcd8fdac..a14d17776dd40 100644 --- a/pkgs/development/python-modules/ffmpy/default.nix +++ b/pkgs/development/python-modules/ffmpy/default.nix @@ -1,11 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pytestCheckHook -, go -, ffmpeg-headless +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + pytestCheckHook, + go, + ffmpeg-headless, }: buildPythonPackage rec { @@ -35,15 +37,18 @@ buildPythonPackage rec { pythonImportsCheck = [ "ffmpy" ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook go ]; + disabledTests = lib.optionals stdenv.isDarwin [ + # expects a FFExecutableNotFoundError, gets a NotADirectoryError raised by os + "test_invalid_executable_path" + ]; + # the vendored ffmpeg mock binary assumes FHS preCheck = '' rm -v tests/ffmpeg/ffmpeg @@ -52,7 +57,7 @@ buildPythonPackage rec { ''; meta = with lib; { - description = "A simple python interface for FFmpeg/FFprobe"; + description = "Simple python interface for FFmpeg/FFprobe"; homepage = "https://github.com/Ch00k/ffmpy"; license = licenses.mit; maintainers = with maintainers; [ pbsds ]; |