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