Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 97 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ 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 ]; };}