From 0f95daf2a4384f70098d6aabaf5c70c034e9b105 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 23 Aug 2021 22:16:20 +0200 Subject: [PATCH] python3Packages.hy: init at 1.0a3 --- .../development/python-modules/hy/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/hy/default.nix diff --git a/pkgs/development/python-modules/hy/default.nix b/pkgs/development/python-modules/hy/default.nix new file mode 100644 index 000000000000..63625bd7ee60 --- /dev/null +++ b/pkgs/development/python-modules/hy/default.nix @@ -0,0 +1,52 @@ +{ lib +, astor +, buildPythonPackage +, colorama +, fetchFromGitHub +, funcparserlib +, pytestCheckHook +, pythonOlder +, rply +}: + +buildPythonPackage rec { + pname = "hy"; + version = "1.0a3"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "hylang"; + repo = pname; + rev = version; + sha256 = "1dqw24rvsps2nab1pbjjm1c81vrs34r4kkk691h3xdyxnv9hb84b"; + }; + + propagatedBuildInputs = [ + colorama + funcparserlib + rply + ] ++ lib.optionals (pythonOlder "3.9") [ + astor + ]; + + checkInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # Don't test the binary + "test_bin_hy" + "test_hystartup" + "est_hy2py_import" + ]; + + pythonImportsCheck = [ "hy" ]; + + meta = with lib; { + description = "Python to/from Lisp layer"; + homepage = "https://github.com/hylang/hy"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 428913333280..1a72ec3a10cd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3443,6 +3443,8 @@ in { hwi = callPackage ../development/python-modules/hwi { }; + hy = callPackage ../development/python-modules/hy { }; + hydra = callPackage ../development/python-modules/hydra { }; hydra-check = callPackage ../development/python-modules/hydra-check { };