nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 29 lines 824 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, pycodestyle, glibcLocales }: 2 3buildPythonPackage rec { 4 pname = "autopep8"; 5 version = "1.4.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "33d2b5325b7e1afb4240814fe982eea3a92ebea712869bfd08b3c0393404248c"; 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}