at 22.05-pre 895 B view raw
1{ lib 2, astor 3, buildPythonPackage 4, colorama 5, fetchFromGitHub 6, funcparserlib 7, pytestCheckHook 8, pythonOlder 9, rply 10}: 11 12buildPythonPackage rec { 13 pname = "hy"; 14 version = "1.0a3"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "hylang"; 20 repo = pname; 21 rev = version; 22 sha256 = "1dqw24rvsps2nab1pbjjm1c81vrs34r4kkk691h3xdyxnv9hb84b"; 23 }; 24 25 propagatedBuildInputs = [ 26 colorama 27 funcparserlib 28 rply 29 ] ++ lib.optionals (pythonOlder "3.9") [ 30 astor 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # Don't test the binary 39 "test_bin_hy" 40 "test_hystartup" 41 "est_hy2py_import" 42 ]; 43 44 pythonImportsCheck = [ "hy" ]; 45 46 meta = with lib; { 47 description = "Python to/from Lisp layer"; 48 homepage = "https://github.com/hylang/hy"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}