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