about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyunifiprotect/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pyunifiprotect/default.nix')
-rw-r--r--pkgs/development/python-modules/pyunifiprotect/default.nix106
1 files changed, 0 insertions, 106 deletions
diff --git a/pkgs/development/python-modules/pyunifiprotect/default.nix b/pkgs/development/python-modules/pyunifiprotect/default.nix
deleted file mode 100644
index bfbd39ce5cc4..000000000000
--- a/pkgs/development/python-modules/pyunifiprotect/default.nix
+++ /dev/null
@@ -1,106 +0,0 @@
-{
-  lib,
-  aiofiles,
-  aiohttp,
-  aioshutil,
-  async-timeout,
-  buildPythonPackage,
-  dateparser,
-  fetchFromGitHub,
-  ffmpeg,
-  hatch-vcs,
-  hatchling,
-  ipython,
-  orjson,
-  packaging,
-  pillow,
-  platformdirs,
-  py,
-  pydantic,
-  pyjwt,
-  pytest-aiohttp,
-  pytest-asyncio,
-  pytest-benchmark,
-  pytest-timeout,
-  pytest-xdist,
-  pytestCheckHook,
-  python-dotenv,
-  pythonOlder,
-  pytz,
-  termcolor,
-  typer,
-}:
-
-buildPythonPackage rec {
-  pname = "pyunifiprotect";
-  version = "5.1.2";
-  pyproject = true;
-
-  disabled = pythonOlder "3.9";
-
-  src = fetchFromGitHub {
-    owner = "briis";
-    repo = "pyunifiprotect";
-    rev = "refs/tags/v${version}";
-    hash = "sha256-DtQm6u3O0kdVJ23Ch+hJQ6HTOt5iAMdhCzC1K/oICWk=";
-  };
-
-  env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
-
-  postPatch = ''
-    substituteInPlace pyproject.toml \
-      --replace-fail "--strict-markers -ra -Wd --ignore=.* --no-cov-on-fail --cov=pyunifiprotect --cov-append --maxfail=10 -n=auto" ""
-  '';
-
-  build-system = [
-    hatch-vcs
-    hatchling
-  ];
-
-  dependencies = [
-    aiofiles
-    aiohttp
-    aioshutil
-    dateparser
-    orjson
-    packaging
-    pillow
-    platformdirs
-    pydantic
-    pyjwt
-    pytz
-    typer
-  ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
-
-  passthru.optional-dependencies = {
-    shell = [
-      ipython
-      python-dotenv
-      termcolor
-    ];
-  };
-
-  nativeCheckInputs = [
-    ffmpeg # Required for command ffprobe
-    py
-    pytest-aiohttp
-    pytest-asyncio
-    pytest-benchmark
-    pytest-timeout
-    pytest-xdist
-    pytestCheckHook
-  ];
-
-  pythonImportsCheck = [ "pyunifiprotect" ];
-
-  pytestFlagsArray = [ "--benchmark-disable" ];
-
-  meta = with lib; {
-    description = "Library for interacting with the Unifi Protect API";
-    mainProgram = "unifi-protect";
-    homepage = "https://github.com/briis/pyunifiprotect";
-    changelog = "https://github.com/AngellusMortis/pyunifiprotect/releases/tag/v${version}";
-    license = with licenses; [ mit ];
-    maintainers = with maintainers; [ fab ];
-  };
-}