Unverified Commit 299bc226 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #326363 from dotlambda/python3Packages.eq3btsmart

home-assistant: support eq3btsmart component
parents 53fbcae6 579a3436
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+47 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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"
+4 −0
Original line number Diff line number Diff line
@@ -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 { };