1{ lib
2, buildPythonPackage
3, click
4, crcmod
5, fetchFromGitHub
6, getmac
7, intelhex
8, paho-mqtt
9, pyserial
10, pyserial-asyncio
11, pytest-sugar
12, pytest-timeout
13, pytestCheckHook
14, pythonOlder
15, voluptuous
16}:
17
18buildPythonPackage rec {
19 pname = "pymysensors";
20 version = "0.21.0";
21 disabled = pythonOlder "3.6";
22
23 src = fetchFromGitHub {
24 owner = "theolind";
25 repo = pname;
26 rev = version;
27 sha256 = "1k75gwvyzslyjr3cdx8b74fb302k2i7bda4q92rb75rhgp4gch55";
28 };
29
30 propagatedBuildInputs = [
31 click
32 crcmod
33 getmac
34 intelhex
35 paho-mqtt
36 pyserial
37 pyserial-asyncio
38 voluptuous
39 ];
40
41 checkInputs = [
42 pytest-sugar
43 pytest-timeout
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [ "mysensors" ];
48
49 meta = with lib; {
50 description = "Python API for talking to a MySensors gateway";
51 homepage = "https://github.com/theolind/pymysensors";
52 license = with licenses; [ mit ];
53 maintainers = with maintainers; [ fab ];
54 };
55}