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

python310Packages.pyunifiprotect: 3.7.0 -> 3.8.0

authored by Martin Weinelt and committed by GitHub 0fb2b1c7 81128707

+13 -7
+13 -7
pkgs/development/python-modules/pyunifiprotect/default.nix
··· 3 3 , aioshutil 4 4 , buildPythonPackage 5 5 , fetchFromGitHub 6 + , ipython 6 7 , packaging 7 8 , pillow 8 9 , poetry-core ··· 17 18 , python-dotenv 18 19 , pythonOlder 19 20 , pytz 21 + , termcolor 20 22 , typer 21 23 }: 22 24 23 25 buildPythonPackage rec { 24 26 pname = "pyunifiprotect"; 25 - version = "3.7.0"; 27 + version = "3.8.0"; 26 28 format = "pyproject"; 27 29 28 30 disabled = pythonOlder "3.9"; ··· 30 32 src = fetchFromGitHub { 31 33 owner = "briis"; 32 34 repo = pname; 33 - rev = "v${version}"; 34 - hash = "sha256-0adbUKTkbgA4pKrIVFGowD4Wf8brjfkLpfCT/+Mw6vs="; 35 + rev = "refs/tags/v${version}"; 36 + hash = "sha256-YFdGWGm+DUi/0l9YBliQH1VgpYEVcHVgLirJTrNmNP4="; 35 37 }; 36 38 37 39 propagatedBuildInputs = [ ··· 41 43 pillow 42 44 pydantic 43 45 pyjwt 44 - python-dotenv 45 46 pytz 46 47 typer 47 48 ]; 48 49 50 + passthru.optional-dependencies = { 51 + shell = [ 52 + ipython 53 + python-dotenv 54 + termcolor 55 + ]; 56 + }; 57 + 49 58 checkInputs = [ 50 59 pytest-aiohttp 51 60 pytest-asyncio ··· 56 65 ]; 57 66 58 67 postPatch = '' 59 - # https://github.com/briis/pyunifiprotect/pull/176 60 - substituteInPlace setup.cfg \ 61 - --replace "asyncio" "aiohttp" 62 68 substituteInPlace pyproject.toml \ 63 69 --replace "--cov=pyunifiprotect --cov-append" "" 64 70 '';