python312Packages.aiohomeconnect: init at 0.6.0 (#360584)

This commit is contained in:
Fabian Affolter
2024-12-02 08:58:07 +01:00
committed by GitHub
2 changed files with 69 additions and 0 deletions
@@ -0,0 +1,67 @@
{
lib,
authlib,
buildPythonPackage,
fastapi,
fetchFromGitHub,
httpx,
mashumaro,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytest-httpx,
pytestCheckHook,
pythonOlder,
typer,
uvicorn,
}:
buildPythonPackage rec {
pname = "aiohomeconnect";
version = "0.6.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aiohomeconnect";
rev = "refs/tags/v${version}";
hash = "sha256-fPjr4LygYIfSOiVU1yD6ICKkEGJMWOTRrT6oh7DBGTI=";
};
pythonRelaxDeps = [ "httpx" ];
build-system = [ poetry-core ];
dependencies = [
httpx
mashumaro
];
optional-dependencies = {
cli = [
authlib
fastapi
typer
uvicorn
];
};
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytest-httpx
pytestCheckHook
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "aiohomeconnect" ];
meta = {
description = "An asyncio client for the Home Connect API";
homepage = "https://github.com/MartinHjelmare/aiohomeconnect";
changelog = "https://github.com/MartinHjelmare/aiohomeconnect/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
+2
View File
@@ -245,6 +245,8 @@ self: super: with self; {
aiohasupervisor = callPackage ../development/python-modules/aiohasupervisor { };
aiohomeconnect = callPackage ../development/python-modules/aiohomeconnect { };
aiohomekit = callPackage ../development/python-modules/aiohomekit { };
aiohttp = callPackage ../development/python-modules/aiohttp { };