Merge pull request #175419 from SuperSandro2000/codespell

python310Packages.codespell: remove pytest-cov
This commit is contained in:
Fabian Affolter 2022-05-30 08:30:14 +02:00 committed by GitHub
commit 02c6c574f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"