2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
pyyaml,
|
|
|
|
unicode-rbnf,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "hassil";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.6.1";
|
2022-12-28 21:21:41 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
format = "setuptools";
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-jkPo02Jy6UqyC5YvwMw+DDkT8rG5Xe4EiNVED/JHzKc=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|