2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyflakes";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.2.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyCQA";
|
|
|
|
repo = "pyflakes";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-ouCkkm9OrYob00uLTilqgWsTWfHhzaiZp7sa2C5liqk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
pythonImportsCheck = [ "pyflakes" ];
|
2020-12-03 08:41:04 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "https://github.com/PyCQA/pyflakes";
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/PyCQA/pyflakes/blob/${src.rev}/NEWS.rst";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple program which checks Python source files for errors";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pyflakes";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-08-21 13:32:41 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|