Something went wrong. Try again.
lol
Something went wrong. Try again.
1.9 kB · 96 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ lib, aiohttp, aiomqtt, buildPythonPackage, cachetools, defusedxml, docker, fetchFromGitHub, orjson, pkg-config, pycountry, pytest-asyncio, pytest-codspeed, pytestCheckHook, pythonOlder, rustPlatform, syrupy, testfixtures, xz,}:
buildPythonPackage (finalAttrs: { pname = "deebot-client"; version = "18.1.0"; pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub { owner = "DeebotUniverse"; repo = "client.py"; tag = finalAttrs.version; hash = "sha256-+URVdNcuV7H/vrYw+8fq6IdZ9OSZsbqDEZSd8s5XKyA="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; hash = "sha256-umCaUmtlKPs/sxdZ0BdA9pbg5gy4aOQl3uSAioD1gXs="; };
nativeBuildInputs = [ pkg-config rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ];
buildInputs = [ xz ];
dependencies = [ aiohttp aiomqtt cachetools defusedxml orjson ];
nativeCheckInputs = [ docker pycountry pytest-asyncio pytest-codspeed pytestCheckHook syrupy 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 = { description = "Deebot client library"; homepage = "https://github.com/DeebotUniverse/client.py"; changelog = "https://github.com/DeebotUniverse/client.py/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ fab ]; };})