2025-01-04 00:19:17 +01:00

41 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "growattserver";
version = "1.6.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "indykoning";
repo = "PyPi_GrowattServer";
tag = version;
hash = "sha256-P7HZPmDUQM3DuaGSkAHc0jQBGeurS+KgtdwT7ZJ/8q8=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "growattServer" ];
meta = with lib; {
description = "Python package to retrieve information from Growatt units";
homepage = "https://github.com/indykoning/PyPi_GrowattServer";
changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}