1{
2 lib,
3 buildPythonPackage,
4 home-assistant-chip-wheels,
5 aenum,
6 dacite,
7}:
8
9buildPythonPackage rec {
10 pname = "home-assistant-chip-clusters";
11 inherit (home-assistant-chip-wheels) version;
12 format = "wheel";
13
14 src = home-assistant-chip-wheels;
15
16 # format=wheel needs src to be a wheel not a folder of wheels
17 preUnpack = ''
18 src=($src/home_assistant_chip_clusters*.whl)
19 '';
20
21 propagatedBuildInputs = [
22 aenum
23 dacite
24 ];
25
26 pythonImportsCheck = [
27 "chip.clusters"
28 "chip.clusters.ClusterObjects"
29 "chip.tlv"
30 ];
31
32 doCheck = false; # no tests
33
34 meta = with lib; {
35 description = "Python-base APIs and tools for CHIP";
36 homepage = "https://github.com/home-assistant-libs/chip-wheels";
37 changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}";
38 license = licenses.asl20;
39 teams = [ teams.home-assistant ];
40 };
41}