blob: c913bec5c7ca264522e159f6adfb8ff95efe2db1 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
aiohttp,
bleak,
bleak-retry-connector,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pyopenssl,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "pyswitchbot";
version = "0.76.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pySwitchbot";
tag = finalAttrs.version;
hash = "sha256-t5ij86Nq5BQONizKRFPeNyleFo7n4RD9pEglLPhS+Gk=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
bleak
bleak-retry-connector
cryptography
pyopenssl
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "switchbot" ];
meta = {
description = "Python library to control Switchbot IoT devices";
homepage = "https://github.com/Danielhiversen/pySwitchbot";
changelog = "https://github.com/Danielhiversen/pySwitchbot/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.linux;
};
})
|