diff options
Diffstat (limited to 'pkgs/development/python-modules/codespell/default.nix')
-rw-r--r-- | pkgs/development/python-modules/codespell/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/codespell/default.nix b/pkgs/development/python-modules/codespell/default.nix index d9b64cb8399..95b64dda4b2 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" |