python3Packages.hy: fix version

main
Thiago Kenji Okada 2 years ago
parent 72fd5b71bc
commit 927dffd2a7
  1. 10
      pkgs/development/python-modules/hy/default.nix

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

Loading…
Cancel
Save