Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pycodestyle / default.nix
blobf17001efdda16bae2081aed59f95b0baf3e22908
1 { buildPythonPackage
2 , pythonOlder
3 , fetchPypi
4 , lib
5 , python
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "pycodestyle";
11   version = "2.11.1";
13   disabled = pythonOlder "3.6";
15   format = "setuptools";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-QboOevyXUt+1PO1UieifgYa+AOWZ5xJmBpW3p1/yZj8=";
20   };
22   pythonImportsCheck = [
23     "pycodestyle"
24   ];
26   nativCheckInputs = [
27     pytestCheckHook
28   ];
30   # https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16
31   postCheck = ''
32     ${python.interpreter} -m pycodestyle --statistics pycodestyle.py
33   '';
35   meta = with lib; {
36     changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt";
37     description = "Python style guide checker";
38     mainProgram = "pycodestyle";
39     homepage = "https://pycodestyle.pycqa.org/";
40     license = licenses.mit;
41     maintainers = with maintainers; [
42       kamadorueda
43     ];
44   };