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