Files
nixpkgs/pkgs/development/python-modules/home-assistant-chip-core/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

70 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
aenum,
home-assistant-chip-wheels,
coloredlogs,
construct,
cryptography,
dacite,
deprecation,
ipdb,
mobly,
pygobject3,
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 = [
aenum
coloredlogs
construct
cryptography
dacite
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 = {
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 ];
};
}