Merge pull request #326363 from dotlambda/python3Packages.eq3btsmart

home-assistant: support eq3btsmart component
This commit is contained in:
Martin Weinelt 2024-07-11 21:28:20 +02:00 committed by GitHub
commit 299bc2263b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 116 additions and 1 deletions

View File

@ -0,0 +1,62 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
construct,
typing-extensions,
arrow,
cloudpickle,
numpy,
pytestCheckHook,
ruamel-yaml,
}:
buildPythonPackage rec {
pname = "construct-typing";
version = "0.6.2";
pyproject = true;
src = fetchFromGitHub {
owner = "timrid";
repo = "construct-typing";
rev = "refs/tags/v${version}";
hash = "sha256-zXpxu+VUcepEoAPLQnSlMCZkt8fDsMCLS0HBKhaYD20=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "construct" ];
dependencies = [
construct
typing-extensions
];
pythonImportsCheck = [
"construct-stubs"
"construct_typed"
];
nativeCheckInputs = [
arrow
cloudpickle
numpy
pytestCheckHook
ruamel-yaml
];
disabledTests = [
# tests fail with construct>=2.10.70
"test_bitsinteger"
"test_bytesinteger"
];
meta = {
changelog = "https://github.com/timrid/construct-typing/releases/tag/v${version}";
description = "Extension for the python package 'construct' that adds typing features";
homepage = "https://github.com/timrid/construct-typing";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
bleak,
construct,
construct-typing,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "eq3btsmart";
version = "1.1.9";
pyproject = true;
src = fetchFromGitHub {
owner = "EuleMitKeule";
repo = "eq3btsmart";
rev = "refs/tags/${version}";
hash = "sha256-7kJqPygX2Oc7fz31qZWrS1ZA+kANZr8vxOwarUzgp/M=";
};
build-system = [ poetry-core ];
dependencies = [
bleak
construct
construct-typing
];
pythonImportsCheck = [ "eq3btsmart" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
meta = {
changelog = "https://github.com/EuleMitKeule/eq3btsmart/releases/tag/${version}";
description = "Python library that allows interaction with eQ-3 Bluetooth smart thermostats";
homepage = "https://github.com/EuleMitKeule/eq3btsmart";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -1140,6 +1140,7 @@
bluetooth-auto-recovery
bluetooth-data-tools
dbus-fast
eq3btsmart
esphome-dashboard-api
fnv-hash-fast
ha-ffmpeg
@ -1154,7 +1155,7 @@
sqlalchemy
webrtc-noise-gain
zeroconf
]; # missing inputs: eq3btsmart
];
"escea" = ps: with ps; [
pescea
];
@ -5400,6 +5401,7 @@
"environment_canada"
"epion"
"epson"
"eq3btsmart"
"escea"
"esphome"
"eufylife_ble"

View File

@ -2487,6 +2487,8 @@ self: super: with self; {
construct-classes = callPackage ../development/python-modules/construct-classes { };
construct-typing = callPackage ../development/python-modules/construct-typing { };
consul = callPackage ../development/python-modules/consul { };
container-inspector = callPackage ../development/python-modules/container-inspector { };
@ -3928,6 +3930,8 @@ self: super: with self; {
epson-projector = callPackage ../development/python-modules/epson-projector { };
eq3btsmart = callPackage ../development/python-modules/eq3btsmart { };
equinox = callPackage ../development/python-modules/equinox { };
eradicate = callPackage ../development/python-modules/eradicate { };