Commit dbb01b81 authored by Jamie Magee's avatar Jamie Magee
Browse files

python3Packages.py-unifi-access: init at 1.1.3

parent 32cbbb03
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  pydantic,
  aioresponses,
  pytest-asyncio,
  pytest-cov-stub,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "py-unifi-access";
  version = "1.1.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "imhotep";
    repo = "py-unifi-access";
    tag = finalAttrs.version;
    hash = "sha256-FYhHTYQl+yGHcAu0APqdfca/YSMp3GSQmY7kSO4xkH8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    pydantic
  ];

  nativeCheckInputs = [
    aioresponses
    pytest-asyncio
    pytest-cov-stub
    pytestCheckHook
  ];

  pythonImportsCheck = [ "unifi_access_api" ];

  meta = {
    description = "Async Python client for the UniFi Access local API with WebSocket event support";
    homepage = "https://github.com/imhotep/py-unifi-access";
    changelog = "https://github.com/imhotep/py-unifi-access/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -13177,6 +13177,8 @@ self: super: with self; {
  py-ubjson = callPackage ../development/python-modules/py-ubjson { };
  py-unifi-access = callPackage ../development/python-modules/py-unifi-access { };
  py-vapid = callPackage ../development/python-modules/py-vapid { };
  py-zabbix = callPackage ../development/python-modules/py-zabbix { };