15 buildPythonPackage rec {
18 format = "setuptools";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
25 rev = "refs/tags/${version}";
26 sha256 = "sha256-V+ZtPm17ESxCGpRieGvEeO2bkwHfZQ6k9lsnDWr6pqo=";
29 # https://github.com/hylang/hy/blob/1.0a4/get_version.py#L9-L10
32 propagatedBuildInputs = [
36 lib.optionals (pythonOlder "3.9") [
46 export PATH="$out/bin:$PATH"
50 "test_circular_macro_require"
54 pythonImportsCheck = [ "hy" ];
57 tests.version = testers.testVersion {
61 # For backwards compatibility with removed pkgs/development/interpreters/hy
63 # hy.withPackages (ps: with ps; [ hyrule requests ])
64 withPackages = python-packages:
66 (ps: (python-packages ps) ++ [ ps.hy ])).overrideAttrs (old: {
67 name = "${hy.name}-env";
68 meta = lib.mergeAttrs (builtins.removeAttrs hy.meta [ "license" ]) {
75 description = "A LISP dialect embedded in Python";
76 homepage = "https://hylang.org/";
77 changelog = "https://github.com/hylang/hy/releases/tag/${version}";
78 license = licenses.mit;
79 maintainers = with maintainers; [ fab mazurel nixy thiagokokada ];