about summary refs log tree commit diff
path: root/pkgs/servers/home-assistant/intents.nix
blob: b7b1578033e2577b769c3298efd9fbcb14fd4f6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder

# build-system
, setuptools
}:

buildPythonPackage rec {
  pname = "home-assistant-intents";
  version = "2024.4.3";
  format = "wheel";

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit version format;
    pname = "home_assistant_intents";
    dist = "py3";
    python = "py3";
    hash = "sha256-GraYVtioKIoKlPRBhhhzlbBfI6heXAaA1MQpUqAgEDQ=";
  };

  build-system = [
    setuptools
  ];

  # sdist/wheel do not ship tests
  doCheck = false;

  pytestFlagsArray = [
    "intents/tests"
  ];

  meta = with lib; {
    description = "Intents to be used with Home Assistant";
    homepage = "https://github.com/home-assistant/intents";
    license = licenses.cc-by-40;
    maintainers = teams.home-assistant.members;
  };
}