about summary refs log tree commit diff
path: root/pkgs/development/interpreters/hy/default.nix
blob: 12631cee38ae5768c060289df25620d3e06396de (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
{ stdenv, fetchurl, fetchpatch, pythonPackages }:

pythonPackages.buildPythonApplication rec {
  name = "hy-${version}";
  version = "0.16.0";

  src = fetchurl {
    url = "mirror://pypi/h/hy/${name}.tar.gz";
    sha256 = "00lq38ppikrpyw38fn5iy9iwrsamsv22507cp146dsjbzkwjpzrd";
  };

  patches = [
    (fetchpatch {
      name = "bytecode-error-handling.patch";
      url = "https://github.com/hylang/hy/commit/57326785b97b7b0a89f6258fe3d04dccdc06cfc0.patch";
      sha256 = "1lxxs7mxbh0kaaa25b1pbqs9d8asyjnlf2n86qg8hzsv32jfcq92";
      excludes = [ "AUTHORS" "NEWS.rst" ];
    })
  ];

  propagatedBuildInputs = with pythonPackages; [
    appdirs
    astor
    clint
    fastentrypoints
    funcparserlib
    rply
  ];

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