08b13fe6f7
Release notes: * https://github.com/home-assistant-libs/chip-wheels/releases/tag/2024.4.0 * https://github.com/home-assistant-libs/chip-wheels/releases/tag/2024.4.1 * https://github.com/home-assistant-libs/chip-wheels/releases/tag/2024.5.0 * https://github.com/home-assistant-libs/chip-wheels/releases/tag/2024.5.1 * https://github.com/home-assistant-libs/chip-wheels/releases/tag/2024.5.2
114 lines
2.0 KiB
Nix
114 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
|
|
# build
|
|
autoPatchelfHook,
|
|
|
|
# runtime
|
|
glib,
|
|
libnl,
|
|
|
|
# propagates
|
|
aenum,
|
|
coloredlogs,
|
|
construct,
|
|
cryptography,
|
|
dacite,
|
|
ecdsa,
|
|
rich,
|
|
pyyaml,
|
|
ipdb,
|
|
deprecation,
|
|
mobly,
|
|
pygobject3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "home-assistant-chip-core";
|
|
version = "2024.5.2";
|
|
format = "wheel";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src =
|
|
let
|
|
system =
|
|
{
|
|
"aarch64-linux" = {
|
|
name = "aarch64";
|
|
hash = "sha256-4C3KHmFbbpeWvmfwoVcc8kWRw22sGJMyDKsUGcbch6U=";
|
|
};
|
|
"x86_64-linux" = {
|
|
name = "x86_64";
|
|
hash = "sha256-n+Dn0vL0uUEvXsoKegSpJIG2jHbXSrYv2NhL+ZeVHrk=";
|
|
};
|
|
}
|
|
.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
|
|
in
|
|
fetchPypi {
|
|
pname = "home_assistant_chip_core";
|
|
inherit version format;
|
|
dist = "cp37";
|
|
python = "cp37";
|
|
abi = "abi3";
|
|
platform = "manylinux_2_31_${system.name}";
|
|
hash = system.hash;
|
|
};
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
buildInputs = [
|
|
glib
|
|
libnl
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aenum
|
|
coloredlogs
|
|
construct
|
|
cryptography
|
|
dacite
|
|
ecdsa
|
|
rich
|
|
pyyaml
|
|
ipdb
|
|
deprecation
|
|
mobly
|
|
pygobject3
|
|
];
|
|
|
|
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;
|
|
platforms = [
|
|
"aarch64-linux"
|
|
"x86_64-linux"
|
|
];
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|