1{ lib 2, astunparse 3, buildPythonPackage 4, fetchFromGitHub 5, isPy3k 6}: 7 8buildPythonPackage rec { 9 pname = "frilouz"; 10 version = "0.0.2"; 11 disabled = !isPy3k; 12 13 src = fetchFromGitHub { 14 owner = "QuantStack"; 15 repo = "frilouz"; 16 rev = version; 17 sha256 = "0w2qzi4zb10r9iw64151ay01vf0yzyhh0bsjkx1apxp8fs15cdiw"; 18 }; 19 20 checkInputs = [ astunparse ]; 21 22 preCheck = "cd test"; 23 24 checkPhase = '' 25 runHook preCheck 26 python -m unittest 27 runHook postCheck 28 ''; 29 30 pythonImportsCheck = [ "frilouz" ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/QuantStack/frilouz"; 34 description = "Python AST parser adapter with partial error recovery"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ cpcloud ]; 37 }; 38}