Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

101 lines
1.9 KiB
Nix

{
lib,
aiohttp,
aiomqtt,
buildPythonPackage,
cachetools,
defusedxml,
docker,
fetchFromGitHub,
orjson,
pkg-config,
pycountry,
pytest-asyncio,
pytest-codspeed,
pytestCheckHook,
pythonOlder,
rustPlatform,
testfixtures,
xz,
}:
buildPythonPackage rec {
pname = "deebot-client";
version = "15.0.0";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "DeebotUniverse";
repo = "client.py";
tag = version;
hash = "sha256-rTVVcbA0lsnxOlzyLq9Br9maw8CRNpww9T/FnTGCKmw=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-IdaBhExbH0yotjMjkqgdbyVMrFMfAItM6vadYlldCIE=";
};
pythonRelaxDeps = [
"aiohttp"
"defusedxml"
"orjson"
];
nativeBuildInputs = [
pkg-config
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
buildInputs = [ xz ];
dependencies = [
aiohttp
aiomqtt
cachetools
defusedxml
orjson
];
nativeCheckInputs = [
docker
pycountry
pytest-asyncio
pytest-codspeed
pytestCheckHook
testfixtures
];
preCheck = ''
rm -rf deebot_client
'';
pythonImportsCheck = [ "deebot_client" ];
disabledTests = [
# Tests require running container
"test_last_message_received_at"
"test_client_bot_subscription"
"test_client_reconnect_manual"
"test_p2p_success"
"test_p2p_not_supported"
"test_p2p_data_type_not_supported"
"test_p2p_to_late"
"test_p2p_parse_error"
"test_mqtt_task_exceptions"
"test_mqtt_task_exceptions"
"test_client_reconnect_on_broker_error"
];
meta = with lib; {
description = "Deebot client library";
homepage = "https://github.com/DeebotUniverse/client.py";
changelog = "https://github.com/DeebotUniverse/client.py/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}