python3Packages.goodwe: add setuptools to nativeBuildInputs

This commit is contained in:
Martin Weinelt 2022-09-16 18:42:21 +02:00 committed by Frederik Rietdijk
parent 1d20d67783
commit 3e2f9a09b6

View file

@ -3,6 +3,7 @@
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
@ -19,20 +20,25 @@ buildPythonPackage rec {
sha256 = "sha256-RDd0KR7NjBTlgeQ/E4mnLnB2n4NCPoAt2a62NGdzCZE=";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "'marcelblijleven@gmail.com" "marcelblijleven@gmail.com" \
--replace "version: file: VERSION" "version = ${version}"
'';
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [
"goodwe"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Python library for connecting to GoodWe inverter";
homepage = "https://github.com/marcelblijleven/goodwe";