Unverified Commit 4400b633 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #275476 from fabaff/gardena-bluetooth

python311Packages.gardena-bluetooth: init at 1.4.1
parents ee215b58 6c7fcae7
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{ lib
, asyncclick
, bleak
, bleak-retry-connector
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, tzlocal
}:

buildPythonPackage rec {
  pname = "gardena-bluetooth";
  version = "1.4.1";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "elupus";
    repo = "gardena-bluetooth";
    rev = "refs/tags/${version}";
    hash = "sha256-WnurxoSzzNTNxz6S1HSKb/lTuOyox6fG2I0Hlj95Ub0=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    bleak
    bleak-retry-connector
    tzlocal
  ];

  passthru.optional-dependencies = {
    cli = [
      asyncclick
     ];
  };

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImportsCheck = [
    "gardena_bluetooth"
  ];

  meta = with lib; {
    description = "Module for interacting with Gardena Bluetooth";
    homepage = "https://github.com/elupus/gardena-bluetooth";
    changelog = "https://github.com/elupus/gardena-bluetooth/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -1580,6 +1580,7 @@
      dbus-fast
      esphome-dashboard-api
      fnv-hash-fast
      gardena-bluetooth
      ha-ffmpeg
      habluetooth
      hassil
@@ -1592,7 +1593,7 @@
      sqlalchemy
      webrtc-noise-gain
      zeroconf
    ]; # missing inputs: gardena-bluetooth
    ];
    "gaviota" = ps: with ps; [
    ];
    "gc100" = ps: with ps; [
@@ -5927,6 +5928,7 @@
    "frontier_silicon"
    "fully_kiosk"
    "garages_amsterdam"
    "gardena_bluetooth"
    "gdacs"
    "generic"
    "generic_hygrostat"
+2 −0
Original line number Diff line number Diff line
@@ -4423,6 +4423,8 @@ self: super: with self; {
  gaphas = callPackage ../development/python-modules/gaphas { };
  gardena-bluetooth = callPackage ../development/python-modules/gardena-bluetooth { };
  garminconnect-aio = callPackage ../development/python-modules/garminconnect-aio { };
  garminconnect = callPackage ../development/python-modules/garminconnect { };