Files
nixpkgs/pkgs/development/python-modules/home-assistant-chip-clusters/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

42 lines
895 B
Nix

{
lib,
buildPythonPackage,
home-assistant-chip-wheels,
aenum,
dacite,
}:
buildPythonPackage rec {
pname = "home-assistant-chip-clusters";
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_clusters*.whl)
'';
propagatedBuildInputs = [
aenum
dacite
];
pythonImportsCheck = [
"chip.clusters"
"chip.clusters.ClusterObjects"
"chip.tlv"
];
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 ];
};
}