nixpkgs/pkgs/development/python-modules/home-assistant-chip-core/default.nix
K900 da7e2263a5 home-assistant-chip-core: fix native dependencies
These get lost when chip-wheels is compressed, and need to be recovered
in chip-core to be picked up properly by refscan.
2024-11-08 16:39:45 +03:00

74 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
aenum,
home-assistant-chip-wheels,
coloredlogs,
construct,
cryptography,
dacite,
deprecation,
ecdsa,
ipdb,
mobly,
pygobject3,
pyyaml,
rich,
}:
buildPythonPackage rec {
pname = "home-assistant-chip-core";
inherit (home-assistant-chip-wheels) version;
format = "wheel";
disabled = pythonOlder "3.7";
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)
'';
propagatedBuildInputs = [
aenum
coloredlogs
construct
cryptography
dacite
ecdsa
rich
pyyaml
ipdb
deprecation
mobly
pygobject3
] ++ home-assistant-chip-wheels.propagatedBuildInputs;
pythonNamespaces = [
"chip"
"chip.clusters"
];
pythonImportsCheck = [
"chip"
"chip.ble"
"chip.configuration"
"chip.discovery"
"chip.exceptions"
"chip.native"
"chip.storage"
];
doCheck = false; # no tests
meta = with lib; {
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 = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}