Files
nixpkgs/pkgs/development/python-modules/flake8-length/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
884 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flake8,
flit-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "flake8-length";
version = "0.3.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ flake8 ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "flake8_length" ];
enabledTestPaths = [ "tests/" ];
meta = {
description = "Flake8 plugin for a smart line length validation";
homepage = "https://github.com/orsinium-labs/flake8-length";
changelog = "https://github.com/orsinium-labs/flake8-length/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sauyon ];
};
}