2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, amqtt
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, click
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, mashumaro
|
2023-04-12 12:48:02 +00:00
|
|
|
, orjson
|
2021-02-05 17:12:51 +00:00
|
|
|
, paho-mqtt
|
2021-05-20 23:08:51 +00:00
|
|
|
, poetry-core
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-05-20 23:08:51 +00:00
|
|
|
, pythonOlder
|
2024-02-29 20:09:43 +00:00
|
|
|
, pythonRelaxDepsHook
|
2024-04-21 15:54:59 +00:00
|
|
|
, tabulate
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "roombapy";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.8.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pschmitt";
|
|
|
|
repo = "roombapy";
|
2023-03-27 19:17:25 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-1yfmaTzZ7cZW2+Yb3Zbo8+5TfD+H1sA0+SzC1c9MdsQ=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"orjson"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
mashumaro
|
2023-04-12 12:48:02 +00:00
|
|
|
orjson
|
2021-12-06 16:07:01 +00:00
|
|
|
paho-mqtt
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
optional-dependencies.cli = [
|
|
|
|
click
|
|
|
|
tabulate
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
amqtt
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Requires network access
|
|
|
|
"tests/test_discovery.py"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test want to connect to a local MQTT broker
|
|
|
|
"test_roomba_connect"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"roombapy"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python program and library to control Wi-Fi enabled iRobot Roombas";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "roombapy";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/pschmitt/roombapy";
|
2023-03-27 19:17:25 +00:00
|
|
|
changelog = "https://github.com/pschmitt/roombapy/releases/tag/${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.mit;
|
2022-10-30 15:09:59 +00:00
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|