nixpkgs/pkgs/development/python-modules/pycodestyle/default.nix

35 lines
908 B
Nix
Raw Permalink Normal View History

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