2023-01-12 02:37:04 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
2023-05-16 23:24:27 +00:00
|
|
|
aenum,
|
2024-09-29 12:00:00 +00:00
|
|
|
home-assistant-chip-wheels,
|
2023-01-12 02:37:04 +00:00
|
|
|
coloredlogs,
|
|
|
|
construct,
|
2023-05-16 23:24:27 +00:00
|
|
|
cryptography,
|
2023-01-12 02:37:04 +00:00
|
|
|
dacite,
|
2024-09-29 12:00:00 +00:00
|
|
|
deprecation,
|
2023-05-16 23:24:27 +00:00
|
|
|
ecdsa,
|
2023-01-12 02:37:04 +00:00
|
|
|
ipdb,
|
|
|
|
mobly,
|
|
|
|
pygobject3,
|
2024-09-29 12:00:00 +00:00
|
|
|
pyyaml,
|
|
|
|
rich,
|
2023-01-12 02:37:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "home-assistant-chip-core";
|
2024-09-29 12:00:00 +00:00
|
|
|
inherit (home-assistant-chip-wheels) version;
|
2023-01-12 02:37:04 +00:00
|
|
|
format = "wheel";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2024-09-29 12:00:00 +00:00
|
|
|
src = home-assistant-chip-wheels;
|
2023-01-12 02:37:04 +00:00
|
|
|
|
2024-09-29 12:00:00 +00:00
|
|
|
# format=wheel needs src to be a wheel not a folder of wheels
|
|
|
|
preUnpack = ''
|
|
|
|
src=($src/home_assistant_chip_core*.whl)
|
|
|
|
'';
|
2023-01-12 02:37:04 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-05-16 23:24:27 +00:00
|
|
|
aenum
|
2023-01-12 02:37:04 +00:00
|
|
|
coloredlogs
|
|
|
|
construct
|
2023-05-16 23:24:27 +00:00
|
|
|
cryptography
|
2023-01-12 02:37:04 +00:00
|
|
|
dacite
|
2023-05-16 23:24:27 +00:00
|
|
|
ecdsa
|
2023-01-12 02:37:04 +00:00
|
|
|
rich
|
|
|
|
pyyaml
|
|
|
|
ipdb
|
|
|
|
deprecation
|
|
|
|
mobly
|
|
|
|
pygobject3
|
2024-11-08 13:39:45 +00:00
|
|
|
] ++ home-assistant-chip-wheels.propagatedBuildInputs;
|
2023-01-12 02:37:04 +00:00
|
|
|
|
2023-10-21 11:35:38 +00:00
|
|
|
pythonNamespaces = [
|
|
|
|
"chip"
|
|
|
|
"chip.clusters"
|
|
|
|
];
|
|
|
|
|
2023-01-12 02:37:04 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"chip"
|
|
|
|
"chip.ble"
|
2023-10-21 11:35:38 +00:00
|
|
|
"chip.configuration"
|
2023-01-12 02:37:04 +00:00
|
|
|
"chip.discovery"
|
2023-10-21 11:35:38 +00:00
|
|
|
"chip.exceptions"
|
2023-01-12 02:37:04 +00:00
|
|
|
"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";
|
2023-03-01 23:56:35 +00:00
|
|
|
changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}";
|
2023-01-12 02:37:04 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.home-assistant.members;
|
|
|
|
};
|
|
|
|
}
|