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