1{ lib
2, python3Packages
3, hyDefinedPythonPackages /* Packages like with python.withPackages */
4, ...
5}:
6python3Packages.buildPythonApplication rec {
7 pname = "hy";
8 version = "1.0a1";
9
10 src = python3Packages.fetchPypi {
11 inherit pname version;
12 sha256 = "sha256-lCrbvbkeutSNmvvn/eHpTnJwPb5aEH7hWTXYSE+AJmU=";
13 };
14
15 checkInputs = with python3Packages; [ flake8 pytest ];
16
17 propagatedBuildInputs = with python3Packages; [
18 appdirs
19 astor
20 clint
21 colorama
22 fastentrypoints
23 funcparserlib
24 rply
25 pygments
26 ] ++ (hyDefinedPythonPackages python3Packages);
27
28 # Hy does not include tests in the source distribution from PyPI, so only test executable.
29 checkPhase = ''
30 $out/bin/hy --help > /dev/null
31 '';
32
33 meta = with lib; {
34 description = "A LISP dialect embedded in Python";
35 homepage = "https://hylang.org/";
36 license = licenses.mit;
37 maintainers = with maintainers; [ nixy mazurel ];
38 platforms = platforms.all;
39 };
40}