about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aurorapy/default.nix
blob: 7e59d9c8bc958ded0efbca87afac3f3c781a9a3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchFromGitLab
, future
, pyserial
, pytestCheckHook
, pythonOlder
, six
}:

buildPythonPackage rec {
  pname = "aurorapy";
  version = "0.2.6";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitLab {
    owner = "energievalsabbia";
    repo = pname;
    rev = version;
    hash = "sha256-DMlzzLe94dbeHjESmLc045v7vQ//IEsngAv7TeVznHE=";
  };

  propagatedBuildInputs = [
    future
    pyserial
  ];

  checkInputs = [
    pytestCheckHook
    six
  ];

  pythonImportsCheck = [
    "aurorapy"
  ];

  meta = with lib; {
    description = "Implementation of the communication protocol for Power-One Aurora inverters";
    homepage = "https://gitlab.com/energievalsabbia/aurorapy";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}