1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7 websocket-client,
8 xmltodict,
9}:
10
11buildPythonPackage rec {
12 pname = "pyskyqremote";
13 version = "0.3.26";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "RogerSelwyn";
20 repo = "skyq_remote";
21 tag = version;
22 hash = "sha256-aMgUwgKHgR+NQvRxiUV7GaXehjDIlJJJHwSmHDmzK08=";
23 };
24
25 propagatedBuildInputs = [
26 requests
27 websocket-client
28 xmltodict
29 ];
30
31 # Project has no tests, only a test script which looks like anusage example
32 doCheck = false;
33
34 pythonImportsCheck = [ "pyskyqremote" ];
35
36 meta = with lib; {
37 description = "Python module for accessing SkyQ boxes";
38 homepage = "https://github.com/RogerSelwyn/skyq_remote";
39 changelog = "https://github.com/RogerSelwyn/skyq_remote/releases/tag/${version}";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}