Unverified Commit 5215b3a8 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

home-assistant: support togrill component (#461346)

parents d3195761 78919211
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
{
  anyio,
  asyncclick,
  bleak,
  bleak-retry-connector,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  lib,
  uv-dynamic-versioning,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "togrill-bluetooth";
  version = "0.8.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "elupus";
    repo = "togrill-bluetooth";
    tag = version;
    hash = "sha256-aBuWy8tG722yLzUS62yGdXcETGuH+dX9XVi/qMwEiVg=";
  };

  build-system = [
    hatchling
    uv-dynamic-versioning
  ];

  dependencies = [
    bleak
    bleak-retry-connector
  ];

  optional-dependencies = {
    cli = [
      anyio
      asyncclick
    ];
  };

  pythonImportsCheck = [ "togrill_bluetooth" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/elupus/togrill-bluetooth/releases/tag/${src.tag}";
    description = "Module to handle communication with ToGrill compatible temperature probes";
    homepage = "https://github.com/elupus/togrill-bluetooth";
    license = lib.licenses.mit;
    mainProgram = "togrill-bluetooth";
    maintainers = [ lib.maintainers.dotlambda ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -6245,7 +6245,8 @@
        dbus-fast
        habluetooth
        pyserial
      ]; # missing inputs: togrill-bluetooth
        togrill-bluetooth
      ];
    "tolo" =
      ps: with ps; [
        tololib
@@ -7928,6 +7929,7 @@
    "tod"
    "todo"
    "todoist"
    "togrill"
    "tolo"
    "tomato"
    "tomorrowio"
+2 −0
Original line number Diff line number Diff line
@@ -18700,6 +18700,8 @@ self: super: with self; {
  toggl-cli = callPackage ../development/python-modules/toggl-cli { };
  togrill-bluetooth = callPackage ../development/python-modules/togrill-bluetooth { };
  token-bucket = callPackage ../development/python-modules/token-bucket { };
  tokenize-rt = callPackage ../development/python-modules/tokenize-rt { };