2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonOlder
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
# propagates
|
|
|
|
, pyyaml
|
2024-01-02 11:29:13 +00:00
|
|
|
, unicode-rbnf
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-02 11:29:13 +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;
|
|
|
|
};
|
|
|
|
}
|