e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
44 lines
891 B
Nix
44 lines
891 B
Nix
{ buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, lib
|
|
, python
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycodestyle";
|
|
version = "2.11.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QboOevyXUt+1PO1UieifgYa+AOWZ5xJmBpW3p1/yZj8=";
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"pycodestyle"
|
|
];
|
|
|
|
nativCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16
|
|
postCheck = ''
|
|
${python.interpreter} -m pycodestyle --statistics pycodestyle.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt";
|
|
description = "Python style guide checker";
|
|
homepage = "https://pycodestyle.pycqa.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
kamadorueda
|
|
];
|
|
};
|
|
}
|