mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
124de92ab5
Diff: https://github.com/DeebotUniverse/client.py/compare/refs/tags/8.4.0...8.4.1 Changelog: https://github.com/DeebotUniverse/client.py/releases/tag/8.4.1
89 lines
1.6 KiB
Nix
89 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiomqtt,
|
|
buildPythonPackage,
|
|
cachetools,
|
|
defusedxml,
|
|
docker,
|
|
fetchFromGitHub,
|
|
hatch-vcs,
|
|
hatchling,
|
|
numpy,
|
|
pillow,
|
|
pycountry,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
svg-py,
|
|
testfixtures,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deebot-client";
|
|
version = "8.4.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DeebotUniverse";
|
|
repo = "client.py";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-lOKih1TzZRP4HIGzjmCkALtaz5s/lR2SjjqCnBK0G6Y=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiohttp"
|
|
"defusedxml"
|
|
];
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|