Merge pull request #176226 from r-ryantm/auto-update/python3.10-pyunifiprotect

python310Packages.pyunifiprotect: 3.7.0 -> 3.8.0
This commit is contained in:
Martin Weinelt 2022-06-04 13:35:26 +02:00 committed by GitHub
commit 0fb2b1c7ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
, aioshutil
, buildPythonPackage
, fetchFromGitHub
, ipython
, packaging
, pillow
, poetry-core
@ -17,12 +18,13 @@
, python-dotenv
, pythonOlder
, pytz
, termcolor
, typer
}:
buildPythonPackage rec {
pname = "pyunifiprotect";
version = "3.7.0";
version = "3.8.0";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -30,8 +32,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "briis";
repo = pname;
rev = "v${version}";
hash = "sha256-0adbUKTkbgA4pKrIVFGowD4Wf8brjfkLpfCT/+Mw6vs=";
rev = "refs/tags/v${version}";
hash = "sha256-YFdGWGm+DUi/0l9YBliQH1VgpYEVcHVgLirJTrNmNP4=";
};
propagatedBuildInputs = [
@ -41,11 +43,18 @@ buildPythonPackage rec {
pillow
pydantic
pyjwt
python-dotenv
pytz
typer
];
passthru.optional-dependencies = {
shell = [
ipython
python-dotenv
termcolor
];
};
checkInputs = [
pytest-aiohttp
pytest-asyncio
@ -56,9 +65,6 @@ buildPythonPackage rec {
];
postPatch = ''
# https://github.com/briis/pyunifiprotect/pull/176
substituteInPlace setup.cfg \
--replace "asyncio" "aiohttp"
substituteInPlace pyproject.toml \
--replace "--cov=pyunifiprotect --cov-append" ""
'';