From f956eaac6b512384a54e3aba30c7d6f1b1c8c866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 15 Jun 2023 16:32:28 +0200 Subject: [PATCH] refurb: disable test relying on mypy --- pkgs/development/tools/refurb/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/refurb/default.nix b/pkgs/development/tools/refurb/default.nix index f98f656d4dd1..c413a57a7caa 100644 --- a/pkgs/development/tools/refurb/default.nix +++ b/pkgs/development/tools/refurb/default.nix @@ -15,6 +15,11 @@ python3Packages.buildPythonApplication rec { hash = "sha256-e/gKBgbtjO2XYnAIdHDoVJWyP6cyvsuIFLrV/eqjces="; }; + postPatch = '' + # remove --cov* options provided to pytest + sed -i '/^addopts = "--cov/d' pyproject.toml + ''; + nativeBuildInputs = with python3Packages; [ poetry-core ]; @@ -41,9 +46,9 @@ python3Packages.buildPythonApplication rec { pytestCheckHook ]; - postPatch = '' - sed -i "/^addopts/d" pyproject.toml - ''; + disabledTests = [ + "test_checks" # broken because new mypy release added new checks + ]; pythonImportsCheck = [ "refurb"