python312Packages.pyunifiprotect: remove

pyunifiprotect has disappeared from GitHub and PyPI after a license
change. Use uiprotect instead.
This commit is contained in:
Fabian Affolter 2024-09-17 08:50:30 +02:00
parent 9b4fc8ed1a
commit 5ffb02646b
3 changed files with 1 additions and 108 deletions

View File

@ -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 ];
};
}

View File

@ -511,6 +511,7 @@ mapAliases ({
pytorchWithoutCuda = torchWithoutCuda; # added 2022-09-30
pytwitchapi = twitchapi; # added 2022-03-07
pyuavcan = throw "pyuavcan has been renamed to pycyphal and the old package deprecated, use pycyphal instead"; # added 2024-02-09
pyunifiprotect = throw "pyunifiprotect has disappeared from GitHub and PyPI, use uiprotect instead"; # added 2024-09-17
pyutilib = throw "pyutilib has been removed, since it is no longer maintained"; # added 2024-07-28
pyvcf = throw "pyvcf has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2023-05-19
pyvicare = pyvicare-neo; # added 2024-08-31

View File

@ -12964,8 +12964,6 @@ self: super: with self; {
pyunifi = callPackage ../development/python-modules/pyunifi { };
pyunifiprotect = callPackage ../development/python-modules/pyunifiprotect { };
pyupdate = callPackage ../development/python-modules/pyupdate { };
pyupgrade = callPackage ../development/python-modules/pyupgrade { };