blob: 115f33df2d713b7c82a5760f29b161a376c27dd2 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "sunweg";
version = "3.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rokam";
repo = "sunweg";
tag = version;
hash = "sha256-T67eH5WjS7J2pcNjq9psNmD4MwMfH+HRvk9llqI3FoQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
python-dateutil
requests
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "sunweg" ];
meta = {
description = "Module to access the WEG solar energy platform";
homepage = "https://github.com/rokam/sunweg";
changelog = "https://github.com/rokam/sunweg/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|