1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 httpx, 7 pytest-aiohttp, 8 pytest-mock, 9 pytestCheckHook, 10 pythonOlder, 11 respx, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "ha-philipsjs"; 17 version = "3.3.4"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "danielperna84"; 24 repo = "ha-philipsjs"; 25 tag = version; 26 hash = "sha256-Ui15KtTpyfVTHmiHNVx/99qiUtKLZeyOOtAuQvfnU8k="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 cryptography 33 httpx 34 ]; 35 36 nativeCheckInputs = [ 37 pytest-aiohttp 38 pytest-mock 39 pytestCheckHook 40 respx 41 ]; 42 43 pythonImportsCheck = [ "haphilipsjs" ]; 44 45 meta = with lib; { 46 description = "Library to interact with Philips TVs with jointSPACE API"; 47 homepage = "https://github.com/danielperna84/ha-philipsjs"; 48 changelog = "https://github.com/danielperna84/ha-philipsjs/releases/tag/${version}"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}