From b47e6c8bf0807992612f34f455dc806588006f72 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 30 Oct 2024 10:46:57 +0100 Subject: [PATCH] python312Packages.automower-ble: init at 0.2.0 Module to connect to Husqvarna Automower Connect https://github.com/alistair23/AutoMower-BLE --- .../python-modules/automower-ble/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/automower-ble/default.nix diff --git a/pkgs/development/python-modules/automower-ble/default.nix b/pkgs/development/python-modules/automower-ble/default.nix new file mode 100644 index 000000000000..5a2dbd5d8c30 --- /dev/null +++ b/pkgs/development/python-modules/automower-ble/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f201fad95c5f..62eb43a0d046 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };