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:
parent
36ab9337c0
commit
7534a77bb6
61
pkgs/development/python-modules/aioautomower/default.nix
Normal file
61
pkgs/development/python-modules/aioautomower/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user