Unverified Commit f8013bd3 authored by Karl Beecken's avatar Karl Beecken Committed by Sandro Jäckel
Browse files

python3Packages.teltasync: init at 0.2.0

parent 466857d9
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromCodeberg,
  aiohttp,
  pydantic,
  uv-build,
  pytestCheckHook,
  pytest-asyncio,
  syrupy,
}:

buildPythonPackage (finalAttrs: {
  pname = "teltasync";
  version = "0.2.0";
  pyproject = true;

  src = fetchFromCodeberg {
    owner = "dmho";
    repo = "teltasync";
    tag = "v${finalAttrs.version}";
    hash = "sha256-skTJyWkDplgGJ5al6YMVnFAo1Js1yc5ViKUiPm9hhJg=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "uv_build>=0.10.2,<0.11.0" "uv_build"
  '';

  build-system = [ uv-build ];

  dependencies = [
    aiohttp
    pydantic
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
    syrupy
  ];

  pythonImportsCheck = [ "teltasync" ];

  meta = {
    description = "Async, typed API client for Teltonika routers, built for Home Assistant";
    homepage = "https://codeberg.org/dmho/teltasync";
    changelog = "https://codeberg.org/dmho/teltasync/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.karlbeecken ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -18944,6 +18944,8 @@ self: super: with self; {
  tellduslive = callPackage ../development/python-modules/tellduslive { };
  teltasync = callPackage ../development/python-modules/teltasync { };
  temescal = callPackage ../development/python-modules/temescal { };
  temperusb = callPackage ../development/python-modules/temperusb { };