2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hy,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hyrule";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.7.0";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hylang";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "hyrule";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-w1Q2w/P1bDt/F1+zTkUFi5PxycXXE3p0qadfBcyWElg=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
dependencies = [ hy ];
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
# Some tests depends on hy on PATH
|
|
|
|
preCheck = "PATH=${hy}/bin:$PATH";
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "hyrule" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-05 15:53:02 +00:00
|
|
|
description = "Utility library for the Hy programming language";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/hylang/hyrule";
|
|
|
|
changelog = "https://github.com/hylang/hylure/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ thiagokokada ];
|
|
|
|
};
|
|
|
|
}
|