blob: 9a177d7b49366629cb0e074f93fad28a1b4789ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, glibcLocales
, pycodestyle
, pytestCheckHook
, pythonOlder
, tomli
}:
buildPythonPackage rec {
pname = "autopep8";
version = "2.0.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hhatto";
repo = "autopep8";
rev = "refs/tags/v${version}";
hash = "sha256-TuaDnZqn9mRUsoDJkj9JK4ztvzl9JTwAk8nghIkZBvw=";
};
propagatedBuildInputs = [
pycodestyle
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
nativeCheckInputs = [
glibcLocales
pytestCheckHook
];
env.LC_ALL = "en_US.UTF-8";
meta = with lib; {
changelog = "https://github.com/hhatto/autopep8/releases/tag/v${version}";
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
homepage = "https://github.com/hhatto/autopep8";
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
}
|