Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 106 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107{ lib, aiofiles, aiohttp, aioshutil, buildPythonPackage, dateparser, fetchFromGitHub, ipython, orjson, packaging, pillow, poetry-core, py, pydantic, pyjwt, pytest-aiohttp, pytest-asyncio, pytest-benchmark, pytest-timeout, pytest-xdist, pytestCheckHook, python-dotenv, pythonOlder, pytz, setuptools, setuptools-scm, termcolor, typer, ffmpeg}:
buildPythonPackage rec { pname = "pyunifiprotect"; version = "4.10.3"; format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "briis"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-QCQMCvPRJDNcqOIQ51Pbt+x+05ySlXk2PYio4JKFEuI="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "--cov=pyunifiprotect --cov-append" "" '';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ setuptools setuptools-scm ];
propagatedBuildInputs = [ aiofiles aiohttp aioshutil dateparser orjson packaging pillow pydantic pyjwt pytz typer ] ++ typer.optional-dependencies.all;
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"; homepage = "https://github.com/briis/pyunifiprotect"; changelog = "https://github.com/AngellusMortis/pyunifiprotect/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}