1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, cachetools
5, paho-mqtt
6, pytz
7, requests
8, requests_oauthlib
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "pysmappee";
14 version = "0.2.25";
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "smappee";
19 repo = pname;
20 rev = version;
21 sha256 = "0ld3pb86dq61fcvr6zigdz1vjjcwf7izzkajyg82nmb508a570d7";
22 };
23
24 propagatedBuildInputs = [
25 cachetools
26 paho-mqtt
27 pytz
28 requests
29 requests_oauthlib
30 ];
31
32 # Project has no tests
33 doCheck = false;
34 pythonImportsCheck = [ "pysmappee" ];
35
36 meta = with lib; {
37 description = "Python Library for the Smappee dev API";
38 homepage = "https://github.com/smappee/pysmappee";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];
41 };
42}