at 22.05-pre 783 B view raw
1{ lib, buildPythonPackage, fetchPypi, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "astor"; 5 version = "0.8.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka"; 10 }; 11 12 # disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89 13 checkInputs = [ pytestCheckHook ]; 14 disabledTests = [ 15 "check_expressions" 16 "check_astunparse" 17 "convert_stdlib" 18 "codegen_as_submodule" 19 "positional_only_arguments" 20 "codegen_from_root" 21 ]; 22 23 meta = with lib; { 24 description = "Library for reading, writing and rewriting python AST"; 25 homepage = "https://github.com/berkerpeksag/astor"; 26 license = licenses.bsd3; 27 maintainers = with maintainers; [ nixy ]; 28 }; 29}