13 buildPythonPackage rec {
16 format = "setuptools";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/${version}";
24 hash = "sha256-Emzz6m5voH3dCAw7/7d0XLlLEEOjnfrVNZ8WWKa38Ow=";
27 # https://github.com/hylang/hy/blob/1.0a4/get_version.py#L9-L10
30 propagatedBuildInputs = [
33 lib.optionals (pythonOlder "3.9") [
43 export PATH="$out/bin:$PATH"
46 pythonImportsCheck = [ "hy" ];
49 tests.version = testers.testVersion {
53 # For backwards compatibility with removed pkgs/development/interpreters/hy
55 # hy.withPackages (ps: with ps; [ hyrule requests ])
56 withPackages = python-packages:
58 (ps: (python-packages ps) ++ [ ps.hy ])).overrideAttrs (old: {
59 name = "${hy.name}-env";
60 meta = lib.mergeAttrs (builtins.removeAttrs hy.meta [ "license" ]) {
67 description = "A LISP dialect embedded in Python";
68 homepage = "https://hylang.org/";
69 changelog = "https://github.com/hylang/hy/releases/tag/${version}";
70 license = licenses.mit;
71 maintainers = with maintainers; [ fab mazurel nixy thiagokokada ];