Merge pull request #303054 from fabaff/goodwe-bump

python312Packages.goodwe: 0.3.1 -> 0.3.2
This commit is contained in:
Fabian Affolter 2024-04-10 11:47:39 +02:00 committed by GitHub
commit 4760a2ba95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,14 +1,15 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pytestCheckHook fetchFromGitHub,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "goodwe"; pname = "goodwe";
version = "0.3.1"; version = "0.3.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -17,7 +18,7 @@ buildPythonPackage rec {
owner = "marcelblijleven"; owner = "marcelblijleven";
repo = "goodwe"; repo = "goodwe";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-6KCIfCyViiBU/cez9m34FMPkTUTkmEYc/e/xYqOyJLY="; hash = "sha256-0N2aimDj9HF0y1pitg7E2OzGk4o4kopSlvXy9x6jplk=";
}; };
postPatch = '' postPatch = ''
@ -26,18 +27,11 @@ buildPythonPackage rec {
--replace-fail "version: file: VERSION" "version = ${version}" --replace-fail "version: file: VERSION" "version = ${version}"
''; '';
nativeBuildInputs = [ build-system = [ setuptools ];
setuptools
];
pythonImportsCheck = [ nativeCheckInputs = [ pytestCheckHook ];
"goodwe"
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "goodwe" ];
meta = with lib; { meta = with lib; {
description = "Python library for connecting to GoodWe inverter"; description = "Python library for connecting to GoodWe inverter";