about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/roombapy/default.nix
blob: 459037d6191e9e2183c12893940612d0ee1a57bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, amqtt
, buildPythonPackage
, fetchFromGitHub
, paho-mqtt
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "roombapy";
  version = "1.6.3";
  format = "pyproject";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "pschmitt";
    repo = "roombapy";
    rev = version;
    sha256 = "sha256-GkDfIC2jx4Mpguk/Wu45pZw0czhabJwTz58WYSLCOV8=";
  };

  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = [ paho-mqtt ];

  checkInputs = [
    amqtt
    pytest-asyncio
    pytestCheckHook
  ];

  disabledTestPaths = [
    # Requires network access
    "tests/test_discovery.py"
  ];

  pythonImportsCheck = [ "roombapy" ];

  meta = with lib; {
    homepage = "https://github.com/pschmitt/roombapy";
    description = "Python program and library to control Wi-Fi enabled iRobot Roombas";
    maintainers = with maintainers; [ justinas ];
    license = licenses.mit;
  };
}