2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
python,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycodestyle";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.11.1";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-QboOevyXUt+1PO1UieifgYa+AOWZ5xJmBpW3p1/yZj8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pycodestyle" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativCheckInputs = [ pytestCheckHook ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16
|
|
|
|
postCheck = ''
|
2022-08-21 13:32:41 +00:00
|
|
|
${python.interpreter} -m pycodestyle --statistics pycodestyle.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt";
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "Python style guide checker";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pycodestyle";
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "https://pycodestyle.pycqa.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|