blob: 289332eb7c485b0939304a910f86c073d34e18c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ buildPythonPackage
, fetchPypi
, lib
}:
buildPythonPackage rec {
pname = "pycodestyle";
version = "2.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4";
};
# 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
'';
meta = with lib; {
description = "Python style guide checker (formerly called pep8)";
homepage = "https://pycodestyle.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}
|