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

32 lines
784 B
Nix
Raw Normal View History

{ buildPythonPackage
, fetchPypi
, lib
}:
2017-07-13 01:32:27 +01:00
buildPythonPackage rec {
pname = "pycodestyle";
2020-06-06 07:47:24 +01:00
version = "2.6.0";
2017-07-13 01:32:27 +01:00
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:24 +01:00
sha256 = "c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e";
2017-07-13 01:32:27 +01: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";
2017-07-13 01:32:27 +01:00
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
2017-07-13 01:32:27 +01:00
};
}