Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / autopep8 / default.nix
blob34dd0baa4c99d31d6b77df4af1b0604d0f24d13e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , glibcLocales
6 , pycodestyle
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
10 , tomli
13 buildPythonPackage rec {
14   pname = "autopep8";
15   version = "2.0.4-unstable-2023-10-27";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "hhatto";
22     repo = "autopep8";
23     rev = "af7399d90926f2fe99a71f15197a08fa197f73a1";
24     hash = "sha256-psGl9rXxTQGHyXf1VskJ/I/goVH5hRRP5bUXQdaT/8M=";
25   };
27   build-system = [
28     setuptools
29   ];
31   propagatedBuildInputs = [
32     pycodestyle
33   ] ++ lib.optionals (pythonOlder "3.11") [
34     tomli
35   ];
37   nativeCheckInputs = [
38     glibcLocales
39     pytestCheckHook
40   ];
42   env.LC_ALL = "en_US.UTF-8";
44   meta = with lib; {
45     changelog = "https://github.com/hhatto/autopep8/releases/tag/v${version}";
46     description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
47     homepage = "https://github.com/hhatto/autopep8";
48     license = licenses.mit;
49     mainProgram = "autopep8";
50     maintainers = with maintainers; [ bjornfor ];
51   };