15 buildPythonPackage rec {
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
25 rev = "refs/tags/${version}";
26 hash = "sha256-o6txdC8TOdaILAJP9LDAhJ587p+mw0bUEGLneQQYW9c=";
29 # https://github.com/hylang/hy/blob/1.0a4/get_version.py#L9-L10
32 build-system = [ setuptools ];
34 dependencies = [ funcparserlib ] ++ lib.optionals (pythonOlder "3.9") [ astor ];
36 nativeCheckInputs = [ pytestCheckHook ];
40 export PATH="$out/bin:$PATH"
43 pythonImportsCheck = [ "hy" ];
46 tests.version = testers.testVersion {
50 # For backwards compatibility with removed pkgs/development/interpreters/hy
52 # hy.withPackages (ps: with ps; [ hyrule requests ])
55 (python.withPackages (ps: (python-packages ps) ++ [ ps.hy ])).overrideAttrs (old: {
56 name = "${hy.name}-env";
57 meta = lib.mergeAttrs (builtins.removeAttrs hy.meta [ "license" ]) { mainProgram = "hy"; };
62 description = "LISP dialect embedded in Python";
63 homepage = "https://hylang.org/";
64 changelog = "https://github.com/hylang/hy/releases/tag/${version}";
65 license = licenses.mit;
66 maintainers = with maintainers; [