1{ lib, fetchPypi, buildPythonPackage, pycodestyle, glibcLocales 2, toml 3}: 4 5buildPythonPackage rec { 6 pname = "autopep8"; 7 version = "1.5.7"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "276ced7e9e3cb22e5d7c14748384a5cf5d9002257c0ed50c0e075b68011bb6d0"; 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 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}