Commit b47e6c8b authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.automower-ble: init at 0.2.0

Module to connect to Husqvarna Automower Connect

https://github.com/alistair23/AutoMower-BLE
parent 8a2cc6b2
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  lib,
  bleak,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "automower-ble";
  version = "0.2.0";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "alistair23";
    repo = "AutoMower-BLE";
    rev = "refs/tags/${version}";
    hash = "sha256-BWfRXz78e1Xq0fNOGJ2IFnjNqfH3oD5VIGMxyCPtEUw=";
  };

  build-system = [ setuptools ];

  dependencies = [ bleak ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "automower_ble" ];

  meta = {
    description = "Module to connect to Husqvarna Automower Connect";
    homepage = "https://github.com/alistair23/AutoMower-BLE";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1036,6 +1036,8 @@ self: super: with self; {
  automate-home = callPackage ../development/python-modules/automate-home { };
  automower-ble = callPackage ../development/python-modules/automower-ble { };
  automx2 = callPackage ../development/python-modules/automx2 { };
  autopage = callPackage ../development/python-modules/autopage { };