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