1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-asyncio 5, pytestCheckHook 6, pythonOlder 7, setuptools 8, wheel 9}: 10 11buildPythonPackage rec { 12 pname = "anthemav"; 13 version = "1.4.2"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "nugget"; 20 repo = "python-anthemav"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-ZjAt4oODx09Qij0PwBvLCplSjwdBx2fReiwjmKhdPa0="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 wheel 28 ]; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "anthemav" 37 ]; 38 39 meta = with lib; { 40 description = "Python asyncio module to interface with Anthem AVM and MRX receivers"; 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}