Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 31 lines 770 B view raw
1{ buildPythonPackage 2, fetchPypi 3, lib 4}: 5 6buildPythonPackage rec { 7 pname = "pycodestyle"; 8 version = "2.5.0"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4"; 13 }; 14 15 # https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14 16 checkPhase = '' 17 python pycodestyle.py --max-doc-length=72 --testsuite testsuite 18 python pycodestyle.py --statistics pycodestyle.py 19 python pycodestyle.py --max-doc-length=72 --doctest 20 python setup.py test 21 ''; 22 23 meta = with lib; { 24 description = "Python style guide checker (formerly called pep8)"; 25 homepage = https://pycodestyle.readthedocs.io; 26 license = licenses.mit; 27 maintainers = with maintainers; [ 28 kamadorueda 29 ]; 30 }; 31}