mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 15:41:16 +00:00
python3Packages.greencell-client: init at 1.0.3
This commit is contained in:
38
pkgs/development/python-modules/greencell-client/default.nix
Normal file
38
pkgs/development/python-modules/greencell-client/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user