1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6
7 # build-system
8 setuptools,
9
10 # dependencies
11 pyyaml,
12 unicode-rbnf,
13
14 # tests
15 pytestCheckHook,
16}:
17
18let
19 pname = "hassil";
20 version = "2.2.3";
21in
22buildPythonPackage {
23 inherit pname version;
24 pyproject = true;
25
26 src = fetchFromGitHub {
27 owner = "home-assistant";
28 repo = "hassil";
29 tag = "v${version}";
30 hash = "sha256-rP7F0BovD0Klf06lywo+1uFhPf+dS0qbNBZluun8+cE=";
31 };
32
33 build-system = [ setuptools ];
34
35 dependencies = [
36 pyyaml
37 unicode-rbnf
38 ];
39
40 nativeCheckInputs = [ pytestCheckHook ];
41
42 meta = with lib; {
43 changelog = "https://github.com/home-assistant/hassil/blob/${version}/CHANGELOG.md";
44 description = "Intent parsing for Home Assistant";
45 mainProgram = "hassil";
46 homepage = "https://github.com/home-assistant/hassil";
47 license = licenses.asl20;
48 teams = [ teams.home-assistant ];
49 };
50}