2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-06-20 14:57:18 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
pyyaml,
|
|
|
|
unicode-rbnf,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "hassil";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.7.1";
|
2022-12-28 21:21:41 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant";
|
|
|
|
repo = "hassil";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-yrjzsJzyUFqTauEcNEOCQx2YxomkNS4J0JfQEQQ5m3E=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-12-28 21:21:41 +00:00
|
|
|
pyyaml
|
2024-01-02 11:29:13 +00:00
|
|
|
unicode-rbnf
|
2022-12-28 21:21:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/home-assistant/hassil/blob/v${version}/CHANGELOG.md";
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Intent parsing for Home Assistant";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "hassil";
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://github.com/home-assistant/hassil";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.home-assistant.members;
|
|
|
|
};
|
|
|
|
}
|