Skip to content

Commit

Permalink
hyuga: init at 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Dec 26, 2024
1 parent d67a846 commit 2463a86
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/by-name/hy/hyuga/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit 2463a86

Please sign in to comment.