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