1{
2 lib,
3 aenum,
4 buildPythonPackage,
5 fetchPypi,
6 pythonOlder,
7 requests,
8 simplejson,
9}:
10
11buildPythonPackage rec {
12 pname = "wallbox";
13 version = "0.6.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-COZHMkAbTFZKi/b4e6toC4gPj1MPfGN4aBVi6SglrBI=";
21 };
22
23 propagatedBuildInputs = [
24 aenum
25 requests
26 simplejson
27 ];
28
29 # no tests implemented
30 doCheck = false;
31
32 pythonImportsCheck = [ "wallbox" ];
33
34 meta = with lib; {
35 description = "Module for interacting with Wallbox EV charger api";
36 homepage = "https://github.com/cliviu74/wallbox";
37 changelog = "https://github.com/cliviu74/wallbox/releases/tag/${version}";
38 license = licenses.mit;
39 maintainers = with maintainers; [ dotlambda ];
40 };
41}