1{ lib 2, fetchPypi 3, buildPythonPackage 4, pycodestyle 5, glibcLocales 6, toml 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "autopep8"; 12 version = "1.7.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-8AWCIOTMDvYSGZb8jsHDLwc15Ea+I8Th9pLeC/IxdN0="; 17 }; 18 19 propagatedBuildInputs = [ pycodestyle toml ]; 20 21 checkInputs = [ 22 glibcLocales 23 pytestCheckHook 24 ]; 25 26 disabledTests = [ 27 # missing tox.ini file from pypi package 28 "test_e101_skip_innocuous" 29 ]; 30 31 LC_ALL = "en_US.UTF-8"; 32 33 meta = with lib; { 34 description = "A tool that automatically formats Python code to conform to the PEP 8 style guide"; 35 homepage = "https://pypi.org/project/autopep8/"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ bjornfor ]; 38 }; 39}