Commit f5ac9eb9 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python3Packages.connect-box3: init at 0.2.1

Interact with a Connect Box 3 modem/router

https://github.com/home-assistant-ecosystem/python-connect-box3
parent 07d60e3f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
{ python3Packages }:

(python3Packages.toPythonApplication python3Packages.connect-box3).overrideAttrs {
  __structuredAttrs = true;
}
+52 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  cyclopts,
  fetchFromGitHub,
  hatchling,
  httpx,
  mashumaro,
  pytest-asyncio,
  pytest-httpx,
  pytestCheckHook,
  rich,
}:

buildPythonPackage (finalAttrs: {
  pname = "connect-box3";
  version = "0.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "home-assistant-ecosystem";
    repo = "python-connect-box3";
    tag = finalAttrs.version;
    hash = "sha256-eLrCMziV/+maLIded1n0248Xb14uVBps/gzTUz8NMMc=";
  };

  build-system = [ hatchling ];

  dependencies = [
    cyclopts
    httpx
    mashumaro
    rich
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
    pytest-httpx
  ];

  pythonImportsCheck = [ "connect_box3" ];

  meta = {
    description = "Interact with a Connect Box 3 modem/router";
    homepage = "https://github.com/home-assistant-ecosystem/python-connect-box3";
    changelog = "https://github.com/home-assistant-ecosystem/python-connect-box3/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "connect-box";
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -3160,6 +3160,8 @@ self: super: with self; {
  connect-box = callPackage ../development/python-modules/connect-box { };
  connect-box3 = callPackage ../development/python-modules/connect-box3 { };
  connected-components-3d = callPackage ../development/python-modules/connected-components-3d { };
  connection-pool = callPackage ../development/python-modules/connection-pool { };