1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 aenum,
6 home-assistant-chip-wheels,
7 coloredlogs,
8 construct,
9 cryptography,
10 dacite,
11 deprecation,
12 ecdsa,
13 ipdb,
14 mobly,
15 pygobject3,
16 pyyaml,
17 rich,
18}:
19
20buildPythonPackage rec {
21 pname = "home-assistant-chip-core";
22 inherit (home-assistant-chip-wheels) version;
23 format = "wheel";
24
25 disabled = pythonOlder "3.7";
26
27 src = home-assistant-chip-wheels;
28
29 # format=wheel needs src to be a wheel not a folder of wheels
30 preUnpack = ''
31 src=($src/home_assistant_chip_core*.whl)
32 '';
33
34 propagatedBuildInputs = [
35 aenum
36 coloredlogs
37 construct
38 cryptography
39 dacite
40 ecdsa
41 rich
42 pyyaml
43 ipdb
44 deprecation
45 mobly
46 pygobject3
47 ] ++ home-assistant-chip-wheels.propagatedBuildInputs;
48
49 pythonNamespaces = [
50 "chip"
51 "chip.clusters"
52 ];
53
54 pythonImportsCheck = [
55 "chip"
56 "chip.ble"
57 "chip.configuration"
58 "chip.discovery"
59 "chip.exceptions"
60 "chip.native"
61 "chip.storage"
62 ];
63
64 doCheck = false; # no tests
65
66 meta = with lib; {
67 description = "Python-base APIs and tools for CHIP";
68 homepage = "https://github.com/home-assistant-libs/chip-wheels";
69 changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}";
70 license = licenses.asl20;
71 teams = [ teams.home-assistant ];
72 };
73}