fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
851 B
Nix
45 lines
851 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
|
|
# propagates
|
|
pyyaml,
|
|
unicode-rbnf,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
let
|
|
pname = "hassil";
|
|
version = "1.6.1";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-jkPo02Jy6UqyC5YvwMw+DDkT8rG5Xe4EiNVED/JHzKc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
unicode-rbnf
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/home-assistant/hassil/blob/v${version}/CHANGELOG.md";
|
|
description = "Intent parsing for Home Assistant";
|
|
mainProgram = "hassil";
|
|
homepage = "https://github.com/home-assistant/hassil";
|
|
license = licenses.asl20;
|
|
maintainers = teams.home-assistant.members;
|
|
};
|
|
}
|