2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
2020-06-15 15:56:04 +00:00
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycodestyle";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "c389c1d06bf7904078ca03399a4816f974a1d590090fecea0c63ec26ebaf1cef";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
|
|
|
|
checkPhase = ''
|
2020-06-15 15:56:04 +00:00
|
|
|
${python.interpreter} pycodestyle.py --max-doc-length=72 --testsuite testsuite
|
|
|
|
${python.interpreter} pycodestyle.py --statistics pycodestyle.py
|
|
|
|
${python.interpreter} pycodestyle.py --max-doc-length=72 --doctest
|
|
|
|
${python.interpreter} -m unittest discover testsuite -vv
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python style guide checker (formerly called pep8)";
|
|
|
|
homepage = "https://pycodestyle.readthedocs.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|