depot/third_party/nixpkgs/pkgs/development/python-modules/pycodestyle/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

34 lines
908 B
Nix

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