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