python3Packages.greencell-client: init at 1.0.3

This commit is contained in:
Jamie Magee
2026-07-09 09:23:21 -07:00
parent 0750a166b5
commit 0941abff3c
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "greencell-client";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "csg-sa";
repo = "greencell-client";
tag = "v${finalAttrs.version}";
hash = "sha256-yj2vyAWv1wPsEUZEEc2fUfTLid6xfhZvHZebkIMA778=";
};
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "greencell_client" ];
meta = {
description = "Library for communication with Greencell devices used by the Home Assistant integration";
homepage = "https://github.com/csg-sa/greencell-client";
changelog = "https://github.com/csg-sa/greencell-client/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})

View File

@@ -7169,6 +7169,8 @@ self: super: with self; {
greenback = callPackage ../development/python-modules/greenback { };
greencell-client = callPackage ../development/python-modules/greencell-client { };
greeneye-monitor = callPackage ../development/python-modules/greeneye-monitor { };
# built-in for pypi