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 = "3.1.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "danielperna84"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-r8uqToxkJg9j89UUZpxsPXutWPefAYDW95zFBKU9Al4="; 25 }; 26 27 propagatedBuildInputs = [ 28 cryptography 29 httpx 30 ]; 31 32 nativeCheckInputs = [ 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 changelog = "https://github.com/danielperna84/ha-philipsjs/releases/tag/${version}"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}