diff --git a/pkgs/development/python-modules/grandstream-home-api/default.nix b/pkgs/development/python-modules/grandstream-home-api/default.nix new file mode 100644 index 0000000000000..0d73b5348f1d6 --- /dev/null +++ b/pkgs/development/python-modules/grandstream-home-api/default.nix @@ -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 ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 412dfadddcca0..5caf0266ef98a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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; };