2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python3Packages }:
|
2017-01-18 14:32:59 +00:00
|
|
|
|
2020-04-29 22:19:15 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-07-04 11:09:28 +01:00
|
|
|
pname = "hy";
|
2020-07-26 16:03:25 +01:00
|
|
|
version = "0.19.0";
|
2017-01-18 14:32:59 +00:00
|
|
|
|
2020-04-29 22:19:15 +01:00
|
|
|
src = python3Packages.fetchPypi {
|
2019-07-04 11:09:28 +01:00
|
|
|
inherit pname version;
|
2020-07-26 16:03:25 +01:00
|
|
|
sha256 = "05k05qmiiysiwdc05sxmanwhv1crfwbb3l8swxfisbzbvmv1snis";
|
2017-01-18 14:32:59 +00:00
|
|
|
};
|
|
|
|
|
2020-04-29 22:19:15 +01:00
|
|
|
checkInputs = with python3Packages; [ flake8 pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2018-10-30 00:07:07 +00:00
|
|
|
appdirs
|
|
|
|
astor
|
|
|
|
clint
|
2020-04-29 22:19:15 +01:00
|
|
|
colorama
|
2019-05-01 18:18:50 +01:00
|
|
|
fastentrypoints
|
2018-10-30 00:07:07 +00:00
|
|
|
funcparserlib
|
|
|
|
rply
|
2020-04-29 22:19:15 +01:00
|
|
|
pygments
|
2018-10-30 00:07:07 +00:00
|
|
|
];
|
2018-02-24 21:37:58 +00:00
|
|
|
|
2020-04-29 22:19:15 +01:00
|
|
|
# Hy does not include tests in the source distribution from PyPI, so only test executable.
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/hy --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2017-01-18 14:32:59 +00:00
|
|
|
description = "A LISP dialect embedded in Python";
|
2019-07-04 11:09:28 +01:00
|
|
|
homepage = "http://hylang.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nixy ];
|
|
|
|
platforms = platforms.all;
|
2017-01-18 14:32:59 +00:00
|
|
|
};
|
|
|
|
}
|