2020-01-10 00:43:36 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
}:
|
2017-07-13 01:32:27 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycodestyle";
|
2019-02-14 08:32:50 +00:00
|
|
|
version = "2.5.0";
|
2017-07-13 01:32:27 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-01-10 00:43:36 +00:00
|
|
|
sha256 = "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4";
|
2017-07-13 01:32:27 +01:00
|
|
|
};
|
|
|
|
|
2020-01-10 00:43:36 +00:00
|
|
|
# https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
|
|
|
|
checkPhase = ''
|
|
|
|
python pycodestyle.py --max-doc-length=72 --testsuite testsuite
|
|
|
|
python pycodestyle.py --statistics pycodestyle.py
|
|
|
|
python pycodestyle.py --max-doc-length=72 --doctest
|
|
|
|
python setup.py test
|
|
|
|
'';
|
|
|
|
|
2017-07-13 01:32:27 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python style guide checker (formerly called pep8)";
|
|
|
|
homepage = https://pycodestyle.readthedocs.io;
|
|
|
|
license = licenses.mit;
|
2020-01-10 00:43:36 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
2017-07-13 01:32:27 +01:00
|
|
|
};
|
|
|
|
}
|