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

32 lines
772 B
Nix
Raw Normal View History

{ buildPythonPackage
, fetchPypi
, lib
}:
2017-07-13 00:32:27 +00:00
buildPythonPackage rec {
pname = "pycodestyle";
2019-02-14 08:32:50 +00:00
version = "2.5.0";
2017-07-13 00:32:27 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4";
2017-07-13 00:32:27 +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 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
};
}