Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / home-assistant-chip-core / default.nix
blob8f05913fbd830d25ede80d7e7c5601359a25365d
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , pythonOlder
7 # build
8 , autoPatchelfHook
10 # runtime
11 , glib
12 , libnl
14 # propagates
15 , aenum
16 , coloredlogs
17 , construct
18 , cryptography
19 , dacite
20 , ecdsa
21 , rich
22 , pyyaml
23 , ipdb
24 , deprecation
25 , mobly
26 , pygobject3
29 buildPythonPackage rec {
30   pname = "home-assistant-chip-core";
31   version = "2024.3.2";
32   format = "wheel";
34   disabled = pythonOlder "3.7";
36   src = let
37     system = {
38       "aarch64-linux" = {
39         name = "aarch64";
40         hash = "sha256-li+fmEikVnTAkgQnoiWjoZaVRwGRadTYuQySR5s8VB4=";
41       };
42       "x86_64-linux" = {
43         name = "x86_64";
44         hash = "sha256-iUKtAz00qFklTW2ilUPGAWhpqDmnLb6D3Zdy1oHpQl0=";
45       };
46     }.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
47   in fetchPypi {
48     pname = "home_assistant_chip_core";
49     inherit version format;
50     dist = "cp37";
51     python = "cp37";
52     abi = "abi3";
53     platform = "manylinux_2_31_${system.name}";
54     hash = system.hash;
55   };
57   nativeBuildInputs = [
58     autoPatchelfHook
59   ];
61   buildInputs = [
62     glib
63     libnl
64   ];
66   propagatedBuildInputs = [
67     aenum
68     coloredlogs
69     construct
70     cryptography
71     dacite
72     ecdsa
73     rich
74     pyyaml
75     ipdb
76     deprecation
77     mobly
78     pygobject3
79   ];
81   pythonNamespaces = [
82     "chip"
83     "chip.clusters"
84   ];
86   pythonImportsCheck = [
87     "chip"
88     "chip.ble"
89     "chip.configuration"
90     "chip.discovery"
91     "chip.exceptions"
92     "chip.native"
93     "chip.storage"
94   ];
96   doCheck = false; # no tests
98   meta = with lib; {
99     description = "Python-base APIs and tools for CHIP";
100     homepage = "https://github.com/home-assistant-libs/chip-wheels";
101     changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}";
102     license = licenses.asl20;
103     maintainers = teams.home-assistant.members;
104     platforms = [ "aarch64-linux" "x86_64-linux" ];
105     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
106   };