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