Diff: https://github.com/DeebotUniverse/client.py/compare/refs/tags/13.4.0...refs/tags/13.5.0 Changelog: https://github.com/DeebotUniverse/client.py/releases/tag/13.5.0
98 lines
1.9 KiB
Nix
98 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiomqtt,
|
|
buildPythonPackage,
|
|
cachetools,
|
|
defusedxml,
|
|
docker,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
pycountry,
|
|
pytest-asyncio,
|
|
pytest-codspeed,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
rustPlatform,
|
|
testfixtures,
|
|
xz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deebot-client";
|
|
version = "13.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DeebotUniverse";
|
|
repo = "client.py";
|
|
tag = version;
|
|
hash = "sha256-sQCUxctFTa3olNxXdSbFh/xo5ISOAivQ6XvvOmLysB4=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit pname version src;
|
|
hash = "sha256-Uk9JIrN1w+bwFSG04I3EQGbBV5SArb7G7jcKpVA+ME4=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiohttp"
|
|
"defusedxml"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.cargoSetupHook
|
|
rustPlatform.maturinBuildHook
|
|
];
|
|
|
|
buildInputs = [ xz ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiomqtt
|
|
cachetools
|
|
defusedxml
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|