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 ]
48 ++ home-assistant-chip-wheels.propagatedBuildInputs;
49
50 pythonNamespaces = [
51 "chip"
52 "chip.clusters"
53 ];
54
55 pythonImportsCheck = [
56 "chip"
57 "chip.ble"
58 "chip.configuration"
59 "chip.discovery"
60 "chip.exceptions"
61 "chip.native"
62 "chip.storage"
63 ];
64
65 doCheck = false; # no tests
66
67 meta = with lib; {
68 description = "Python-base APIs and tools for CHIP";
69 homepage = "https://github.com/home-assistant-libs/chip-wheels";
70 changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}";
71 license = licenses.asl20;
72 teams = [ teams.home-assistant ];
73 };
74}