blob: a51f15f5eeb70a906b91f901e66e5dbded8329ff (
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.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pySwitchbot";
rev = version;
sha256 = "sha256-dx3OMzWJohOYCg7TnrqL4FLZoC+Q1dyJyUAdreDyfl0=";
};
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;
};
}
|