home-assistant: support eddystone_temperature component (#370679)

This commit is contained in:
Martin Weinelt
2025-01-03 23:19:55 +01:00
committed by GitHub
4 changed files with 108 additions and 2 deletions
@@ -0,0 +1,45 @@
{
buildPythonPackage,
fetchFromGitHub,
future,
lib,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "ahocorapy";
version = "1.6.2";
pyproject = true;
src = fetchFromGitHub {
owner = "abusix";
repo = "ahocorapy";
tag = version;
hash = "sha256-ynVkDnrZ12dpNPoKfUdw0/X06aORFkmXFMVH9u0Payo=";
};
build-system = [ setuptools ];
dependencies = [
future
];
pythonImportsCheck = [ "ahocorapy" ];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests/ahocorapy_test.py"
];
meta = {
changelog = "https://github.com/abusix/ahocorapy/blob/${src.tag}/CHANGELOG";
description = "Pure python Aho-Corasick library";
homepage = "https://github.com/abusix/ahocorapy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -0,0 +1,53 @@
{
ahocorapy,
buildPythonPackage,
construct,
fetchFromGitHub,
lib,
pybluez,
pytestCheckHook,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "beacontools";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "citruz";
repo = "beacontools";
tag = "v${version}";
hash = "sha256-3a/HDssOqIfReSijRvmiXwuZjvWLJfDaDyUdA2vv/jA=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [
"ahocorapy"
];
dependencies = [
ahocorapy
construct
];
optional-dependencies = {
scan = lib.optionals stdenv.hostPlatform.isLinux [ pybluez ];
};
pythonImportsCheck = [ "beacontools" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
changelog = "https://github.com/citruz/beacontools/releases/tag/${src.tag}";
description = "Python library for working with various types of Bluetooth LE Beacons";
homepage = "https://github.com/citruz/beacontools";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -1323,8 +1323,12 @@
aioecowitt
];
"eddystone_temperature" =
ps: with ps; [
]; # missing inputs: beacontools
ps:
with ps;
[
beacontools
]
++ beacontools.optional-dependencies.scan;
"edimax" =
ps: with ps; [
pyedimax
+4
View File
@@ -131,6 +131,8 @@ self: super: with self; {
aggdraw = callPackage ../development/python-modules/aggdraw { };
ahocorapy = callPackage ../development/python-modules/ahocorapy { };
ahocorasick-rs = callPackage ../development/python-modules/ahocorasick-rs { };
aigpy = callPackage ../development/python-modules/aigpy { };
@@ -1565,6 +1567,8 @@ self: super: with self; {
bdffont = callPackage ../development/python-modules/bdffont { };
beacontools = callPackage ../development/python-modules/beacontools { };
beaker = callPackage ../development/python-modules/beaker { };
before-after = callPackage ../development/python-modules/before-after { };