depot/third_party/nixpkgs/pkgs/development/python-modules/pycodestyle/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

44 lines
891 B
Nix

{ buildPythonPackage
, pythonOlder
, fetchPypi
, lib
, python
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pycodestyle";
version = "2.11.0";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-JZvMF4V9ios7SiMnMkt55fAgoTwWB0Zw+cjI+HLqdtA=";
};
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
];
};
}