python3Packages.pre-commit-hooks: disable test on darwin

They fail and won't be fixed upstream, see
https://github.com/pre-commit/pre-commit-hooks/pull/655
This commit is contained in:
Andrey Kartashov
2021-12-06 16:05:43 -05:00
parent 61123a6453
commit 4f4439489d

View File

@@ -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 = ''