depot/third_party/nixpkgs/pkgs/development/python-modules/pyflakes/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
856 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyflakes";
version = "3.2.0";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "PyCQA";
repo = "pyflakes";
rev = version;
hash = "sha256-ouCkkm9OrYob00uLTilqgWsTWfHhzaiZp7sa2C5liqk=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyflakes" ];
meta = with lib; {
homepage = "https://github.com/PyCQA/pyflakes";
changelog = "https://github.com/PyCQA/pyflakes/blob/${src.rev}/NEWS.rst";
description = "Simple program which checks Python source files for errors";
mainProgram = "pyflakes";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}