Merge pull request #146903 from fabaff/goodwe
python3Packages.goodwe: init at 0.2.7
This commit is contained in:
commit
8de28c106a
42
pkgs/development/python-modules/goodwe/default.nix
Normal file
42
pkgs/development/python-modules/goodwe/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user