1{
2 lib,
3 buildPythonPackage,
4 docopt,
5 fetchFromGitHub,
6 requests,
7 requests-oauthlib,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "tellduslive";
13 version = "0.10.11";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "molobrakos";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "0aqhj6fq2z2qb4jyk23ygjicf5nlj8lkya7blkyqb7jra5k1gyg0";
23 };
24
25 propagatedBuildInputs = [
26 docopt
27 requests
28 requests-oauthlib
29 ];
30
31 # Project has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "tellduslive" ];
35
36 meta = with lib; {
37 description = "Python module to communicate with Telldus Live";
38 mainProgram = "tellduslive";
39 homepage = "https://github.com/molobrakos/tellduslive";
40 license = with licenses; [ unlicense ];
41 maintainers = with maintainers; [ fab ];
42 };
43}