Files
nixpkgs/pkgs/development/python-modules/growattserver/default.nix
T
2026-01-18 01:40:03 +01:00

38 lines
875 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "growattserver";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "indykoning";
repo = "PyPi_GrowattServer";
tag = finalAttrs.version;
hash = "sha256-2Jgz/wN0k6ni+4PbQwfDg3uMvYxv5N3BVgdARHqQ0Yc=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "growattServer" ];
meta = {
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/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})