blob: ae1029b6dfe75e4c1e257e72144786213988181c (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "goodwe";
version = "0.4.8";
pyproject = true;
src = fetchFromGitHub {
owner = "marcelblijleven";
repo = "goodwe";
tag = "v${version}";
hash = "sha256-EsMv4hzGsAV9OTFo2b/omM4hx7XxUcdO6rrMzQ3DmNQ=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace-fail "'marcelblijleven@gmail.com" "marcelblijleven@gmail.com" \
--replace-fail "version: file: VERSION" "version = ${version}"
'';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "goodwe" ];
meta = {
description = "Python library for connecting to GoodWe inverter";
homepage = "https://github.com/marcelblijleven/goodwe";
changelog = "https://github.com/marcelblijleven/goodwe/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|