From c9d0d43db0bbbef15c5d74f704484b5dd82db195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 06:26:22 +0200 Subject: [PATCH] python310Packages.codespell: remove pytest-cov --- pkgs/development/python-modules/codespell/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/codespell/default.nix b/pkgs/development/python-modules/codespell/default.nix index d9b64cb83994..95b64dda4b2d 100644 --- a/pkgs/development/python-modules/codespell/default.nix +++ b/pkgs/development/python-modules/codespell/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonApplication, fetchFromGitHub, pytestCheckHook, pytest-cov, pytest-dependency, aspell-python, aspellDicts, chardet }: +{ lib, buildPythonApplication, fetchFromGitHub, pytestCheckHook, pytest-dependency, aspell-python, aspellDicts, chardet }: buildPythonApplication rec { pname = "codespell"; @@ -11,7 +11,13 @@ buildPythonApplication rec { sha256 = "sha256-BhYVztSr2MalILEcOcvMl07CObYa73o3kW8S/idqAO8="; }; - checkInputs = [ aspell-python chardet pytestCheckHook pytest-cov pytest-dependency ]; + postPatch = '' + substituteInPlace setup.cfg \ + --replace "--cov=codespell_lib" "" \ + --replace "--cov-report=" "" + ''; + + checkInputs = [ aspell-python chardet pytestCheckHook pytest-dependency ]; preCheck = '' export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"