From 4f4439489d689bd6e2e985f5d9a4f0bdf6a12efd Mon Sep 17 00:00:00 2001 From: Andrey Kartashov Date: Mon, 6 Dec 2021 16:05:43 -0500 Subject: [PATCH] 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 --- pkgs/development/python-modules/pre-commit-hooks/default.nix | 5 +++++ 1 file changed, 5 insertions(+) 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 = ''