summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2022-05-03 20:17:47 +0100
committerThiago Kenji Okada <thiagokokada@gmail.com>2022-05-05 09:41:11 +0100
commit927dffd2a7ec609c19f02c865a108e4dd5ee1830 (patch)
tree8fd2859463728c834d27f4e3aefaf43f9e89e172 /pkgs/development/python-modules
parent72fd5b71bc8d0591b6afb7aab227940f3c670548 (diff)
python3Packages.hy: fix version
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/hy/default.nix10
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";