1{ lib
2, bluepy
3, buildPythonPackage
4, fetchFromGitHub
5}:
6
7buildPythonPackage rec {
8 pname = "pyswitchbot";
9 version = "0.9.1";
10
11 src = fetchFromGitHub {
12 owner = "Danielhiversen";
13 repo = "pySwitchbot";
14 rev = version;
15 sha256 = "16p11fmyms4q93m3rna76nkp2la9m8lmfmaflbvga666vljwfw6v";
16 };
17
18 propagatedBuildInputs = [ bluepy ];
19
20 # Project has no tests
21 doCheck = false;
22 pythonImportsCheck = [ "switchbot" ];
23
24 meta = with lib; {
25 description = "Python library to control Switchbot IoT devices";
26 homepage = "https://github.com/Danielhiversen/pySwitchbot";
27 license = with licenses; [ mit ];
28 maintainers = with maintainers; [ fab ];
29 platforms = platforms.linux;
30 };
31}