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