about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/roombapy/default.nix
blob: 9c438bde75622574ff90ae163570a9e88eaaa5f1 (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
{ buildPythonPackage
, fetchFromGitHub
, hbmqtt
, lib
, paho-mqtt
, poetry
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "roombapy";
  version = "1.6.2-1";

  src = fetchFromGitHub {
    owner = "pschmitt";
    repo = "roombapy";
    rev = version;
    sha256 = "14k7bys479xwpa4alpdwphzmxm3x8kc48nfqnshn1wj94vyxc425";
  };

  format = "pyproject";

  nativeBuildInputs = [ poetry ];
  propagatedBuildInputs = [ paho-mqtt ];

  checkInputs = [ hbmqtt pytest-asyncio pytestCheckHook ];
  pytestFlagsArray = [ "tests/" "--ignore=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;
  };
}