python3Packages.goodwe: add setuptools to nativeBuildInputs
This commit is contained in:
parent
1d20d67783
commit
3e2f9a09b6
1 changed files with 10 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue