nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.5.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-ei4+eGNCzBZQYghgVuQIPgFA2Y1kf8aNtl6ZjwzxIEE=";
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 = {
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 = lib.licenses.asl20;
52 teams = [ lib.teams.home-assistant ];
53 };
54}