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