Merge pull request #149136 from andreyk0/fix/python-pre-commit-hooks

python3Packages.pre-commit-hooks: disable test on darwin
This commit is contained in:
Bobby Rong
2021-12-23 09:44:15 +08:00
committed by GitHub
@@ -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 = ''