Files
nixpkgs/pkgs/development/python-modules/goodwe/default.nix
T
2026-02-08 16:48:44 +01:00

35 lines
811 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "goodwe";
version = "0.4.9";
pyproject = true;
src = fetchFromGitHub {
owner = "marcelblijleven";
repo = "goodwe";
tag = "v${finalAttrs.version}";
hash = "sha256-WHLvfAlwhcA0JFSWfwUPsJ9dWmadIjyonXEP3Bb6WKE=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "goodwe" ];
meta = {
description = "Python library for connecting to GoodWe inverter";
homepage = "https://github.com/marcelblijleven/goodwe";
changelog = "https://github.com/marcelblijleven/goodwe/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})