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