1{ lib 2, buildPythonPackage 3, cryptography 4, fetchFromGitHub 5, httpx 6, pytest-aiohttp 7, pytest-mock 8, pytestCheckHook 9, pythonOlder 10, respx 11}: 12 13buildPythonPackage rec { 14 pname = "ha-philipsjs"; 15 version = "2.9.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "danielperna84"; 22 repo = pname; 23 rev = version; 24 sha256 = "sha256-B2AQoVyoG6wyE9pTWf/ASQd8iZfIrjUr078rSkoARf0="; 25 }; 26 27 propagatedBuildInputs = [ 28 cryptography 29 httpx 30 ]; 31 32 checkInputs = [ 33 pytest-aiohttp 34 pytest-mock 35 pytestCheckHook 36 respx 37 ]; 38 39 pythonImportsCheck = [ 40 "haphilipsjs" 41 ]; 42 43 meta = with lib; { 44 description = "Python library to interact with Philips TVs with jointSPACE API"; 45 homepage = "https://github.com/danielperna84/ha-philipsjs"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}