diff --git a/pkgs/development/python-modules/hy/default.nix b/pkgs/development/python-modules/hy/default.nix index e5b7b9fd578..e37923afad3 100644 --- a/pkgs/development/python-modules/hy/default.nix +++ b/pkgs/development/python-modules/hy/default.nix @@ -4,10 +4,12 @@ , colorama , fetchFromGitHub , funcparserlib +, hy , pytestCheckHook , python , pythonOlder , rply +, testers , hyDefinedPythonPackages ? python-packages: [] /* Packages like with python.withPackages */ }: @@ -25,6 +27,9 @@ buildPythonPackage rec { sha256 = "sha256-MBzp3jqBg/kH233wcgYYHc+Yg9GuOaBsXIfjFDihD1E="; }; + # https://github.com/hylang/hy/blob/1.0a4/get_version.py#L9-L10 + HY_VERSION = version; + propagatedBuildInputs = [ colorama funcparserlib @@ -50,6 +55,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "hy" ]; + passthru.tests.version = testers.testVersion { + package = hy; + command = "hy -v"; + }; + meta = with lib; { description = "Python to/from Lisp layer"; homepage = "https://github.com/hylang/hy";