blob: 7e6807854180e648ef3cfe73c55112fa624a5288 (
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
38
39
40
41
42
43
44
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial-asyncio
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyotgw";
version = "2.1.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mvn23";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-qUwpW9C9VqsbDNa9zqa/BZtMuzmPU21Au/q0iGRkBNY=";
};
propagatedBuildInputs = [
pyserial-asyncio
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"pyotgw"
];
meta = with lib; {
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 licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}
|