python3Packages.grandstream-home-api: init at 0.1.7

This commit is contained in:
Jamie Magee
2026-11-16 20:50:31 -08:00
parent 2c393d268a
commit 4e24efe249
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
hatchling,
pytestCheckHook,
requests,
}:
buildPythonPackage (finalAttrs: {
pname = "grandstream-home-api";
version = "0.1.7";
pyproject = true;
src = fetchFromGitHub {
owner = "wtxu-gs";
repo = "grandstream_home_api";
tag = "v${finalAttrs.version}";
hash = "sha256-NBxd+TQkpWQ9g4EQJPleO32ve9IVUnWJUANvZtt4p04=";
};
build-system = [ hatchling ];
dependencies = [
cryptography
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "grandstream_home_api" ];
meta = {
description = "Python API library for Grandstream GDS/GSC, GNS and GWN Switch devices";
homepage = "https://github.com/wtxu-gs/grandstream_home_api";
changelog = "https://github.com/wtxu-gs/grandstream_home_api/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jamiemagee ];
};
})

View File

@@ -7366,6 +7366,8 @@ self: super: with self; {
grandalf = callPackage ../development/python-modules/grandalf { };
grandstream-home-api = callPackage ../development/python-modules/grandstream-home-api { };
granian = callPackage ../development/python-modules/granian { };
graph-tool = callPackage ../development/python-modules/graph-tool { inherit (pkgs) cgal; };