1{ buildPythonPackage 2, pythonOlder 3, fetchPypi 4, lib 5, python 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "pycodestyle"; 11 version = "2.11.0"; 12 13 disabled = pythonOlder "3.6"; 14 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-JZvMF4V9ios7SiMnMkt55fAgoTwWB0Zw+cjI+HLqdtA="; 20 }; 21 22 pythonImportsCheck = [ 23 "pycodestyle" 24 ]; 25 26 nativCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 # https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16 31 postCheck = '' 32 ${python.interpreter} -m pycodestyle --statistics pycodestyle.py 33 ''; 34 35 meta = with lib; { 36 changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt"; 37 description = "Python style guide checker"; 38 homepage = "https://pycodestyle.pycqa.org/"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ 41 kamadorueda 42 ]; 43 }; 44}