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";