depot/third_party/nixpkgs/pkgs/development/python-modules/deebot-client/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

83 lines
1.6 KiB
Nix

{
lib,
aiohttp,
aiomqtt,
buildPythonPackage,
cachetools,
defusedxml,
docker,
fetchFromGitHub,
numpy,
pillow,
pycountry,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
svg-py,
testfixtures,
}:
buildPythonPackage rec {
pname = "deebot-client";
version = "8.0.0";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "DeebotUniverse";
repo = "client.py";
rev = "refs/tags/${version}";
hash = "sha256-iAUGk7ErRG7ZgvjbmEZRLAOFlMHKZ/iM8pkwAtFla2E=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
aiohttp
aiomqtt
cachetools
defusedxml
numpy
pillow
svg-py
];
nativeCheckInputs = [
docker
pycountry
pytest-asyncio
pytestCheckHook
testfixtures
];
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 ];
};
}