Merge pull request #146903 from fabaff/goodwe

python3Packages.goodwe: init at 0.2.7
This commit is contained in:
Fabian Affolter 2021-11-22 09:45:19 +01:00 committed by GitHub
commit 8de28c106a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "goodwe";
version = "0.2.7";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marcelblijleven";
repo = pname;
rev = "v${version}";
sha256 = "6/JAp7zK60+om4l14sLn+pUki0Q/5XwCJSawOf1q2q0=";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "'marcelblijleven@gmail.com" "marcelblijleven@gmail.com" \
--replace "version: file: VERSION" "version = ${version}"
'';
pythonImportsCheck = [
"goodwe"
];
meta = with lib; {
description = "Python library for connecting to GoodWe inverter";
homepage = "https://github.com/marcelblijleven/goodwe";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -3160,6 +3160,8 @@ in {
goocalendar = callPackage ../development/python-modules/goocalendar { };
goodwe = callPackage ../development/python-modules/goodwe { };
google-api-core = callPackage ../development/python-modules/google-api-core { };
google-api-python-client = callPackage ../development/python-modules/google-api-python-client { };