1{ lib
2, amqtt
3, buildPythonPackage
4, fetchFromGitHub
5, paho-mqtt
6, poetry-core
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "roombapy";
14 version = "1.6.3";
15 format = "pyproject";
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "pschmitt";
20 repo = "roombapy";
21 rev = version;
22 sha256 = "sha256-GkDfIC2jx4Mpguk/Wu45pZw0czhabJwTz58WYSLCOV8=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [ paho-mqtt ];
28
29 checkInputs = [
30 amqtt
31 pytest-asyncio
32 pytestCheckHook
33 ];
34
35 disabledTestPaths = [
36 # Requires network access
37 "tests/test_discovery.py"
38 ];
39
40 pythonImportsCheck = [ "roombapy" ];
41
42 meta = with lib; {
43 homepage = "https://github.com/pschmitt/roombapy";
44 description = "Python program and library to control Wi-Fi enabled iRobot Roombas";
45 maintainers = with maintainers; [ justinas ];
46 license = licenses.mit;
47 };
48}