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