From 3e2f9a09b6dde94fb0221b3f1f945aa8dcfe15b1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 16 Sep 2022 18:42:21 +0200 Subject: [PATCH] python3Packages.goodwe: add setuptools to nativeBuildInputs --- pkgs/development/python-modules/goodwe/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/goodwe/default.nix b/pkgs/development/python-modules/goodwe/default.nix index d2d526ea60df..e10ae6927f63 100644 --- a/pkgs/development/python-modules/goodwe/default.nix +++ b/pkgs/development/python-modules/goodwe/default.nix @@ -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";