1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flake8, 6 flit-core, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "flake8-length"; 13 version = "0.3.1"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA="; 21 }; 22 23 nativeBuildInputs = [ flit-core ]; 24 25 propagatedBuildInputs = [ flake8 ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "flake8_length" ]; 30 31 enabledTestPaths = [ "tests/" ]; 32 33 meta = with lib; { 34 description = "Flake8 plugin for a smart line length validation"; 35 homepage = "https://github.com/orsinium-labs/flake8-length"; 36 changelog = "https://github.com/orsinium-labs/flake8-length/releases/tag/${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ sauyon ]; 39 }; 40}