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