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