1{ stdenv, fetchPypi, buildPythonPackage, pycodestyle, glibcLocales
2, toml
3}:
4
5buildPythonPackage rec {
6 pname = "autopep8";
7 version = "1.5.4";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "d21d3901cb0da6ebd1e83fc9b0dfbde8b46afc2ede4fe32fbda0c7c6118ca094";
12 };
13
14 propagatedBuildInputs = [ pycodestyle toml ];
15
16 # One test fails:
17 # FAIL: test_recursive_should_not_crash_on_unicode_filename (test.test_autopep8.CommandLineTests)
18# doCheck = false;
19
20 checkInputs = [ glibcLocales ];
21
22 LC_ALL = "en_US.UTF-8";
23
24 meta = with stdenv.lib; {
25 description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
26 homepage = "https://pypi.python.org/pypi/autopep8/";
27 license = licenses.mit;
28 platforms = platforms.all;
29 maintainers = with maintainers; [ bjornfor ];
30 };
31}