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