Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 29 lines 917 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, fetchpatch }: 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 = [ pytest ]; 14 checkPhase = '' 15 py.test -k 'not check_expressions \ 16 and not check_astunparse \ 17 and not test_convert_stdlib \ 18 and not test_codegen_as_submodule \ 19 and not test_positional_only_arguments \ 20 and not test_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}