summary refs log tree commit diff
path: root/pkgs/development/interpreters/hy/builder.nix
blob: 6757f859ac14aab14248d114fa54258e94ce054f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, python3Packages
, hyDefinedPythonPackages /* Packages like with python.withPackages */
, ...
}:
python3Packages.buildPythonApplication rec {
  pname = "hy";
  version = "1.0a1";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "sha256-lCrbvbkeutSNmvvn/eHpTnJwPb5aEH7hWTXYSE+AJmU=";
  };

  checkInputs = with python3Packages; [ flake8 pytest ];

  propagatedBuildInputs = with python3Packages; [
    appdirs
    astor
    clint
    colorama
    fastentrypoints
    funcparserlib
    rply
    pygments
  ] ++ (hyDefinedPythonPackages python3Packages);

  # Hy does not include tests in the source distribution from PyPI, so only test executable.
  checkPhase = ''
    $out/bin/hy --help > /dev/null
  '';

  meta = with lib; {
    description = "A LISP dialect embedded in Python";
    homepage = "https://hylang.org/";
    license = licenses.mit;
    maintainers = with maintainers; [ nixy mazurel ];
    platforms = platforms.all;
  };
}