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.7.4";
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "danielperna84";
20 repo = pname;
21 rev = version;
22 sha256 = "08fjdb1q02dwxq8s15ddd00gps64xplblkn8dx5yivldskiy8i1n";
23 };
24
25 propagatedBuildInputs = [
26 cryptography
27 httpx
28 ];
29
30 checkInputs = [
31 pytest-aiohttp
32 pytest-mock
33 pytestCheckHook
34 respx
35 ];
36
37 pythonImportsCheck = [ "haphilipsjs" ];
38
39 meta = with lib; {
40 description = "Python library to interact with Philips TVs with jointSPACE API";
41 homepage = "https://github.com/danielperna84/ha-philipsjs";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}