2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hy,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hyrule";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.6.0";
|
|
|
|
pyproject = true;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-pmJhhOpNxVEUH8YwBUKSywYgYu43oLSmpWJM4HXGMiI=";
|
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-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ hy ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|