{ lib, buildPythonPackage, home-assistant-chip-wheels, coloredlogs, construct, cryptography, dacite, deprecation, ipdb, pyyaml, rich, }: buildPythonPackage rec { pname = "home-assistant-chip-core"; inherit (home-assistant-chip-wheels) version; format = "wheel"; src = home-assistant-chip-wheels; # format=wheel needs src to be a wheel not a folder of wheels preUnpack = '' src=($src/home_assistant_chip_core*.whl) ''; dependencies = [ coloredlogs construct cryptography dacite rich pyyaml ipdb deprecation ]; # only used for testing purposes, unsafe to use in production pythonRemoveDeps = [ "ecdsa" ]; pythonNamespaces = [ "chip" "chip.clusters" ]; pythonImportsCheck = [ "chip" "chip.ble" "chip.configuration" "chip.discovery" "chip.exceptions" "chip.native" "chip.storage" ]; doCheck = false; # no tests meta = { description = "Python-base APIs and tools for CHIP"; homepage = "https://github.com/home-assistant-libs/chip-wheels"; changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}"; license = lib.licenses.asl20; teams = [ lib.teams.home-assistant ]; }; }