2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
mccabe,
|
|
|
|
pycodestyle,
|
|
|
|
pyflakes,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flake8";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "7.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyCQA";
|
|
|
|
repo = "flake8";
|
|
|
|
rev = version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-2oVvchDhH3cX90RTIquYLyr+rzHxzQgYA4k4ReTxpH8=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mccabe
|
2022-08-21 13:32:41 +00:00
|
|
|
pycodestyle
|
|
|
|
pyflakes
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
description = "The modular source code checker: pep8, pyflakes and co";
|
|
|
|
homepage = "https://github.com/PyCQA/flake8";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-08-21 13:32:41 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "flake8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|