python3Packages.codespell: fix tests
This commit is contained in:
parent
c4701586e9
commit
a2db06c3f7
@ -1,4 +1,5 @@
|
|||||||
{ lib, buildPythonApplication, fetchPypi, pytest, chardet }:
|
{ lib, buildPythonApplication, fetchPypi, pytest, chardet }:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "codespell";
|
pname = "codespell";
|
||||||
version = "2.0.0";
|
version = "2.0.0";
|
||||||
@ -8,6 +9,8 @@ buildPythonApplication rec {
|
|||||||
sha256 = "dd9983e096b9f7ba89dd2d2466d1fc37231d060f19066331b9571341363c77b8";
|
sha256 = "dd9983e096b9f7ba89dd2d2466d1fc37231d060f19066331b9571341363c77b8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# no tests in pypi tarball
|
||||||
|
doCheck = false;
|
||||||
checkInputs = [ pytest chardet ];
|
checkInputs = [ pytest chardet ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# We don't want to be affected by the presence of these
|
# We don't want to be affected by the presence of these
|
||||||
@ -16,6 +19,8 @@ buildPythonApplication rec {
|
|||||||
pytest --pyargs codespell_lib.tests -k "not test_command"
|
pytest --pyargs codespell_lib.tests -k "not test_command"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "codespell_lib" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Fix common misspellings in source code";
|
description = "Fix common misspellings in source code";
|
||||||
homepage = "https://github.com/codespell-project/codespell";
|
homepage = "https://github.com/codespell-project/codespell";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user