c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
48 lines
838 B
Nix
48 lines
838 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 = "The modular source code checker: pep8, pyflakes and co";
|
|
homepage = "https://github.com/PyCQA/flake8";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
mainProgram = "flake8";
|
|
};
|
|
}
|