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

45 lines
833 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
mccabe,
pycodestyle,
pyflakes,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flake8";
version = "7.0.0";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "PyCQA";
repo = "flake8";
rev = version;
hash = "sha256-2oVvchDhH3cX90RTIquYLyr+rzHxzQgYA4k4ReTxpH8=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
mccabe
pycodestyle
pyflakes
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Modular source code checker: pep8, pyflakes and co";
homepage = "https://github.com/PyCQA/flake8";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
mainProgram = "flake8";
};
}