blob: 30a5be99e4179a906c7a5cc336bce3dfe1cd2c58 (
plain)
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
46
|
{
lib,
buildPythonPackage,
fetchFromGitLab,
pyserial,
pytestCheckHook,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "aurorapy";
version = "0.2.7";
pyproject = true;
src = fetchFromGitLab {
owner = "energievalsabbia";
repo = "aurorapy";
rev = version;
hash = "sha256-rGwfGq3zdoG9NCGqVN29Q4bWApk5B6CRdsW9ctWgOec=";
};
postPatch = ''
sed -i "/from past.builtins import map/d" aurorapy/client.py
'';
build-system = [ setuptools ];
pythonRemoveDeps = [ "future" ];
dependencies = [ pyserial ];
nativeCheckInputs = [
pytestCheckHook
six
];
pythonImportsCheck = [ "aurorapy" ];
meta = {
description = "Implementation of the communication protocol for Power-One Aurora inverters";
homepage = "https://gitlab.com/energievalsabbia/aurorapy";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|