Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|||
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.2";
|
|||
pyproject = true;
|
|||
|
|||
disabled = pythonOlder "3.11";
|
|||
|
|||
src = fetchFromGitHub {
|
|||
owner = "MartinHjelmare";
|
|||
repo = "aiohomeconnect";
|
|||
rev = "refs/tags/v${version}";
|
|||
hash = "sha256-GW3SNJKj42WXEeHM209waCQjqi0Hy0HhG3gs0Nw2rVI=";
|
|||
};
|
|||
|
|||
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 ];
|
|||
};
|
|||
}
|