1{ stdenv, buildPythonPackage, fetchPypi, pytest }: 2 3buildPythonPackage rec { 4 pname = "astor"; 5 version = "0.6.2"; 6 name = "${pname}-${version}"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "ff6d2e2962d834acb125cc4dcc80c54a8c17c253f4cc9d9c43b5102a560bb75d"; 11 }; 12 13 # disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89 14 checkInputs = [ pytest ]; 15 checkPhase = '' 16 py.test -k 'not check_expressions and not check_astunparse and not test_convert_stdlib and not test_codegen_as_submodule and not test_codegen_from_root' 17 ''; 18 19 meta = with stdenv.lib; { 20 description = "Library for reading, writing and rewriting python AST"; 21 homepage = https://github.com/berkerpeksag/astor; 22 license = licenses.bsd3; 23 maintainers = with maintainers; [ nixy ]; 24 }; 25}