1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "python-juicenet";
10 version = "1.1.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "jesserockz";
17 repo = "python-juicenet";
18 rev = "v${version}";
19 hash = "sha256-5RKnVwOfEHzFZCiC8OUpS8exKrENK+I3Ok45HlKEvtU=";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 ];
25
26 # no tests implemented
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "pyjuicenet"
31 ];
32
33 meta = with lib; {
34 description = "Read and control Juicenet/Juicepoint/Juicebox based EVSE devices";
35 homepage = "https://github.com/jesserockz/python-juicenet";
36 license = licenses.mit;
37 maintainers = with maintainers; [ dotlambda ];
38 };
39}