1{ lib
2, buildPythonPackage
3, fetchFromGitLab
4, future
5, pyserial
6, pytestCheckHook
7, pythonOlder
8, setuptools
9, six
10}:
11
12buildPythonPackage rec {
13 pname = "aurorapy";
14 version = "0.2.7";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitLab {
20 owner = "energievalsabbia";
21 repo = pname;
22 rev = version;
23 hash = "sha256-rGwfGq3zdoG9NCGqVN29Q4bWApk5B6CRdsW9ctWgOec=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 ];
29
30 propagatedBuildInputs = [
31 future
32 pyserial
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 six
38 ];
39
40 pythonImportsCheck = [
41 "aurorapy"
42 ];
43
44 meta = with lib; {
45 description = "Implementation of the communication protocol for Power-One Aurora inverters";
46 homepage = "https://gitlab.com/energievalsabbia/aurorapy";
47 license = with licenses; [ mit ];
48 maintainers = with maintainers; [ fab ];
49 };
50}