blob: 75da8f07a351068ce7debf05a0c7e9517cde49c0 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pyserial-asyncio-fast,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pyotgw";
version = "2.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mvn23";
repo = "pyotgw";
tag = version;
hash = "sha256-BQgRWXBSmB9AzpPeTJP7motJeKF2G0tyqJpbwIwnxwk=";
};
build-system = [ setuptools ];
dependencies = [ pyserial-asyncio-fast ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "pyotgw" ];
disabledTests = [
# Tests require network access
"connect_timeouterror"
];
meta = {
description = "Python module to interact the OpenTherm Gateway";
homepage = "https://github.com/mvn23/pyotgw";
changelog = "https://github.com/mvn23/pyotgw/blob/${version}/CHANGELOG.md";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ fab ];
};
}
|