blob: 81f7c82c87f102807cd31132e67f532377ed0278 (
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
53
54
55
56
57
58
59
60
|
{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
pytest-asyncio,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "screenlogicpy";
version = "0.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "dieselrabbit";
repo = "screenlogicpy";
tag = "v${version}";
hash = "sha256-o/NcLassEaucnWqu5fnYA19wFwCPCT9nYKBeHzFZTKo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ async-timeout ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Tests require network access
"test_async_discovery"
"test_async"
"test_asyncio_gateway_discovery"
"test_discovery_async_discover"
"test_gateway_discovery"
"test_gateway"
]
++ lib.optionals (pythonAtLeast "3.12") [
# Tests block on Python 3.12
"test_sub_unsub"
"test_attach_existing"
"test_login_async_connect_to_gateway"
"test_login_async_gateway_connect"
];
pythonImportsCheck = [ "screenlogicpy" ];
meta = {
description = "Python interface for Pentair Screenlogic devices";
mainProgram = "screenlogicpy";
homepage = "https://github.com/dieselrabbit/screenlogicpy";
changelog = "https://github.com/dieselrabbit/screenlogicpy/releases/tag/${src.tag}";
license = with lib.licenses; [ gpl3Only ];
maintainers = with lib.maintainers; [ fab ];
};
}
|