1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytest-socket,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10 siobrultech-protocols,
11}:
12
13buildPythonPackage rec {
14 pname = "greeneye-monitor";
15 version = "5.0.2";
16 pyproject = true;
17
18 disabled = pythonOlder "3.10";
19
20 src = fetchFromGitHub {
21 owner = "jkeljo";
22 repo = "greeneye-monitor";
23 tag = "v${version}";
24 hash = "sha256-7EDuQ+wECcTzxkEufMpg3WSzosWeiwfxcVIVtQi+0BI=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 aiohttp
31 siobrultech-protocols
32 ];
33
34 nativeCheckInputs = [
35 pytest-socket
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "greeneye.monitor" ];
40
41 meta = with lib; {
42 description = "Receive data packets from GreenEye Monitor";
43 homepage = "https://github.com/jkeljo/greeneye-monitor";
44 changelog = "https://github.com/jkeljo/greeneye-monitor/blob/v${version}/CHANGELOG.rst";
45 license = licenses.mit;
46 maintainers = with maintainers; [ dotlambda ];
47 };
48}