python311Packages.aioautomower: int at 2024.2.4

Module to communicate with the Automower Connect API

https://github.com/Thomas55555/aioautomower
This commit is contained in:
Fabian Affolter 2024-02-12 08:56:34 +01:00
parent 36ab9337c0
commit 7534a77bb6
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,61 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, mashumaro
, poetry-core
, pyjwt
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aioautomower";
version = "2024.2.4";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Thomas55555";
repo = "aioautomower";
rev = "refs/tags/${version}";
hash = "sha256-bgNfV87rHMbNGy8azCS0b6PgkalY2RrbSW2VtjtgPrw=";
};
postPatch = ''
# Upstream doesn't set a version
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
'';
nativeBuildInputs = [
poetry-core
setuptools
];
propagatedBuildInputs = [
aiohttp
mashumaro
pyjwt
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aioautomower"
];
meta = with lib; {
description = "Module to communicate with the Automower Connect API";
homepage = "https://github.com/Thomas55555/aioautomower";
changelog = "https://github.com/Thomas55555/aioautomower/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -167,6 +167,8 @@ self: super: with self; {
aioasuswrt = callPackage ../development/python-modules/aioasuswrt { };
aioautomower = callPackage ../development/python-modules/aioautomower { };
aioazuredevops = callPackage ../development/python-modules/aioazuredevops { };
aiobafi6 = callPackage ../development/python-modules/aiobafi6 { };