python3Packages.goodwe: init at 0.2.7
This commit is contained in:
parent
293e6f0ce5
commit
1f5ffefa45
2 changed files with 44 additions and 0 deletions
pkgs
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 ];
|
||||
};
|
||||
}
|
|
@ -3152,6 +3152,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 a new issue