python312Packages.automower-ble: init at 0.2.0

Module to connect to Husqvarna Automower Connect

https://github.com/alistair23/AutoMower-BLE
This commit is contained in:
Fabian Affolter 2024-10-30 10:46:57 +01:00
parent 8a2cc6b286
commit b47e6c8bf0
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{
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 ];
};
}

View File

@ -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 { };