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