aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/interpreters/hy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/interpreters/hy/default.nix')
-rw-r--r--nixpkgs/pkgs/development/interpreters/hy/default.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/interpreters/hy/default.nix b/nixpkgs/pkgs/development/interpreters/hy/default.nix
index 5816b3a175c..a3aca532b0f 100644
--- a/nixpkgs/pkgs/development/interpreters/hy/default.nix
+++ b/nixpkgs/pkgs/development/interpreters/hy/default.nix
@@ -1,23 +1,32 @@
-{ stdenv, fetchurl, python2Packages }:
+{ stdenv, python3Packages }:
-python2Packages.buildPythonApplication rec {
+python3Packages.buildPythonApplication rec {
pname = "hy";
- version = "0.17.0";
+ version = "0.18.0";
- src = python2Packages.fetchPypi {
+ src = python3Packages.fetchPypi {
inherit pname version;
- sha256 = "1gdbqsirsdxj320wnp7my5awzs1kfs6m4fqmkzbd1zd47qzj0zfi";
+ sha256 = "04dfwm336gw61fmgwikvh0cnxk682p19b4w555wl5d7mlym4rwj2";
};
- propagatedBuildInputs = with python2Packages; [
+ checkInputs = with python3Packages; [ flake8 pytest ];
+
+ propagatedBuildInputs = with python3Packages; [
appdirs
astor
clint
+ colorama
fastentrypoints
funcparserlib
rply
+ pygments
];
+ # Hy does not include tests in the source distribution from PyPI, so only test executable.
+ checkPhase = ''
+ $out/bin/hy --help > /dev/null
+ '';
+
meta = with stdenv.lib; {
description = "A LISP dialect embedded in Python";
homepage = "http://hylang.org/";