2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, amqtt
|
|
|
|
, buildPythonPackage
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchFromGitHub
|
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
|
2024-02-29 20:09:43 +00:00
|
|
|
, pydantic
|
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
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "roombapy";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.6.13";
|
|
|
|
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-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-5TFuOk3fj4kg5MyWz7HQ/zWdvceFa3mWnFx+Yuq2III=";
|
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 = [
|
2023-04-12 12:48:02 +00:00
|
|
|
orjson
|
2021-12-06 16:07:01 +00:00
|
|
|
paho-mqtt
|
2024-02-29 20:09:43 +00:00
|
|
|
pydantic
|
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";
|
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
|
|
|
};
|
|
|
|
}
|