diff --git a/pkgs/development/python-modules/pre-commit-hooks/default.nix b/pkgs/development/python-modules/pre-commit-hooks/default.nix index 530cf826917b..1e573a70382c 100644 --- a/pkgs/development/python-modules/pre-commit-hooks/default.nix +++ b/pkgs/development/python-modules/pre-commit-hooks/default.nix @@ -5,6 +5,7 @@ , pythonOlder , pytestCheckHook , ruamel-yaml +, stdenv , toml }: @@ -30,6 +31,10 @@ buildPythonPackage rec { pytestCheckHook ]; + # Note: this is not likely to ever work on Darwin + # https://github.com/pre-commit/pre-commit-hooks/pull/655 + doCheck = !stdenv.isDarwin; + # the tests require a functional git installation which requires a valid HOME # directory. preCheck = ''