diff options
| author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-05-03 20:17:47 +0100 |
|---|---|---|
| committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-05-05 09:41:11 +0100 |
| commit | 927dffd2a7ec609c19f02c865a108e4dd5ee1830 (patch) | |
| tree | 8fd2859463728c834d27f4e3aefaf43f9e89e172 /pkgs/development/python-modules | |
| parent | 72fd5b71bc8d0591b6afb7aab227940f3c670548 (diff) | |
python3Packages.hy: fix version
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/hy/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hy/default.nix b/pkgs/development/python-modules/hy/default.nix index e5b7b9fd578d..e37923afad3c 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"; |
