2021-05-15 23:44:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "growattserver";
|
2022-06-16 06:46:37 +00:00
|
|
|
version = "1.2.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-05-15 23:44:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "indykoning";
|
|
|
|
repo = "PyPi_GrowattServer";
|
|
|
|
rev = version;
|
2022-06-16 06:46:37 +00:00
|
|
|
hash = "sha256-dS5Ng89aYzfegdFlyt1eo7vhva2ME77pQV2hkd/iNq8=";
|
2021-05-15 23:44:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-16 06:46:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"growattServer"
|
|
|
|
];
|
2021-05-15 23:44:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package to retrieve information from Growatt units";
|
|
|
|
homepage = "https://github.com/indykoning/PyPi_GrowattServer";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|