10 buildPythonPackage rec {
15 disabled = pythonOlder "3.8";
17 src = fetchFromGitHub {
18 owner = "marcelblijleven";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-CIEv3srjyVWQ1UGKVRwPXpzrND/8hTbw6HSlko9+AIk=";
25 substituteInPlace setup.cfg \
26 --replace-fail "'marcelblijleven@gmail.com" "marcelblijleven@gmail.com" \
27 --replace-fail "version: file: VERSION" "version = ${version}"
30 build-system = [ setuptools ];
32 nativeCheckInputs = [ pytestCheckHook ];
34 pythonImportsCheck = [ "goodwe" ];
37 description = "Python library for connecting to GoodWe inverter";
38 homepage = "https://github.com/marcelblijleven/goodwe";
39 changelog = "https://github.com/marcelblijleven/goodwe/releases/tag/v${version}";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];