blob: 96037d5128389b7c2e02a7dda20c1b1a7245a599 (
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
|
{ lib
, bluepy
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pyswitchbot";
version = "0.13.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pySwitchbot";
rev = version;
sha256 = "0pdmssd5dr364p3lrkxqryjc0rbaw6xp724zwqf3i87qs6ljs928";
};
propagatedBuildInputs = [
bluepy
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"switchbot"
];
meta = with lib; {
description = "Python library to control Switchbot IoT devices";
homepage = "https://github.com/Danielhiversen/pySwitchbot";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}
|