1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pydevccu 6, pytest-aiohttp 7, pytestCheckHook 8, python-slugify 9, pythonOlder 10, setuptools 11, voluptuous 12, websocket-client 13, xmltodict 14}: 15 16buildPythonPackage rec { 17 pname = "hahomematic"; 18 version = "2022.11.2"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "danielperna84"; 25 repo = pname; 26 rev = "refs/tags/${version}"; 27 sha256 = "sha256-m28UDaBk2EFwulkjvuT6zpLEeVL/oofHUVSop+AKYvc="; 28 }; 29 30 nativeBuildInputs = [ 31 setuptools 32 ]; 33 34 propagatedBuildInputs = [ 35 aiohttp 36 python-slugify 37 voluptuous 38 ]; 39 40 checkInputs = [ 41 pydevccu 42 pytest-aiohttp 43 pytestCheckHook 44 ]; 45 46 # Starting with 0.30 the tests are broken, check with the next major release 47 doCheck = false; 48 49 pythonImportsCheck = [ 50 "hahomematic" 51 ]; 52 53 meta = with lib; { 54 description = "Python module to interact with HomeMatic devices"; 55 homepage = "https://github.com/danielperna84/hahomematic"; 56 license = with licenses; [ mit ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}