Files
nixpkgs/pkgs/development/python-modules/home-assistant-chip-core/default.nix
T
Robert Schütz 28c0471638 python3Packages.home-assistant-chip-core: don't import ecdsa
Its only import outside of tests is in
`connectedhomeip/src/controller/python/chip/crypto/p256keypair.py` where
it is used in the `TestP256Keypair` class which is only used in tests.
2025-10-21 20:35:41 -07:00

70 lines
1.3 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 = 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;
teams = [ teams.home-assistant ];
};
}