1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 wheel,
10}:
11
12buildPythonPackage rec {
13 pname = "anthemav";
14 version = "1.4.2";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "nugget";
21 repo = "python-anthemav";
22 tag = "v${version}";
23 hash = "sha256-ZjAt4oODx09Qij0PwBvLCplSjwdBx2fReiwjmKhdPa0=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 wheel
29 ];
30
31 nativeCheckInputs = [
32 pytest-asyncio
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "anthemav" ];
37
38 meta = with lib; {
39 description = "Python asyncio module to interface with Anthem AVM and MRX receivers";
40 mainProgram = "anthemav_monitor";
41 homepage = "https://github.com/nugget/python-anthemav";
42 changelog = "https://github.com/nugget/python-anthemav/releases/tag/v${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}