Merge pull request #217997 from fabaff/flake8-length-fix

python310Packages.flake8-length: adjust build system

authored by

Fabian Affolter and committed by
GitHub
61b96f53 371c7b82

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