From 2463a86f218dcef7ea5fd68c691b00287e89342b Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 22 Dec 2024 21:39:25 +0100 Subject: [PATCH] hyuga: init at 1.0.0 --- pkgs/by-name/hy/hyuga/package.nix | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/hy/hyuga/package.nix diff --git a/pkgs/by-name/hy/hyuga/package.nix b/pkgs/by-name/hy/hyuga/package.nix new file mode 100644 index 0000000000000..ec4b7c2d7b124 --- /dev/null +++ b/pkgs/by-name/hy/hyuga/package.nix @@ -0,0 +1,47 @@ +{ + lib, + fetchFromGitHub, + python3Packages, +}: + +python3Packages.buildPythonApplication rec { + pname = "hyuga"; + version = "1.0.0"; + pyproject = true; + + build-system = [ python3Packages.poetry-core ]; + + src = fetchFromGitHub { + owner = "sakuraiyuta"; + repo = "hyuga"; + tag = version; + hash = "sha256-7TLWx+t9VE1LcjH3z0XGHSeR1kcYy2EjPmvI1fUoilM="; + }; + + postPatch = '' + substituteInPlace hyuga/uri/helper.hy \ + --replace-fail "{root-path}/.venv/lib" "$out/lib" + ''; + + dependencies = with python3Packages; [ + hy + hyrule + toolz + pygls + setuptools # required for pkg_resources + ]; + + pythonRelaxDeps = [ "setuptools" ]; + + nativeCheckInputs = [ python3Packages.pytestCheckHook ]; + + doCheck = true; + + meta = { + description = "Yet Another Hy Language Server"; + mainProgram = "hyuga"; + license = lib.licenses.mit; + homepage = "https://github.com/sakuraiyuta/hyuga"; + maintainers = with lib.maintainers; [ sigmanificient ]; + }; +}