1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 bleak,
7 construct-typing,
8 pytest-asyncio,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "eq3btsmart";
14 version = "2.1.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "EuleMitKeule";
19 repo = "eq3btsmart";
20 tag = version;
21 hash = "sha256-JPmIKj8IL3i7QWiMTmGQzqb4h0VqLlhILPAOqMucsuM=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 bleak
28 construct-typing
29 ];
30
31 pythonImportsCheck = [ "eq3btsmart" ];
32
33 nativeCheckInputs = [
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 meta = {
39 changelog = "https://github.com/EuleMitKeule/eq3btsmart/releases/tag/${src.tag}";
40 description = "Python library that allows interaction with eQ-3 Bluetooth smart thermostats";
41 homepage = "https://github.com/EuleMitKeule/eq3btsmart";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ dotlambda ];
44 };
45}