2020-01-09 16:43:36 -08:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
2020-06-07 00:33:46 -07:00
|
|
|
, python
|
2020-01-09 16:43:36 -08:00
|
|
|
}:
|
2017-07-12 17:32:27 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycodestyle";
|
2021-03-24 02:28:21 -07:00
|
|
|
version = "2.7.0";
|
2017-07-12 17:32:27 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 02:28:21 -07:00
|
|
|
sha256 = "c389c1d06bf7904078ca03399a4816f974a1d590090fecea0c63ec26ebaf1cef";
|
2017-07-12 17:32:27 -07:00
|
|
|
};
|
|
|
|
|
2020-06-07 00:33:46 -07:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2020-01-09 16:43:36 -08:00
|
|
|
# https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
|
|
|
|
checkPhase = ''
|
2020-06-07 00:33:46 -07: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-01-09 16:43:36 -08:00
|
|
|
'';
|
|
|
|
|
2017-07-12 17:32:27 -07:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python style guide checker (formerly called pep8)";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://pycodestyle.readthedocs.io";
|
2017-07-12 17:32:27 -07:00
|
|
|
license = licenses.mit;
|
2020-01-09 16:43:36 -08:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
2017-07-12 17:32:27 -07:00
|
|
|
};
|
|
|
|
}
|