diff --git a/pkgs/development/python-modules/pyunifiprotect/default.nix b/pkgs/development/python-modules/pyunifiprotect/default.nix index be333ee9d045..ed8621bcf3f5 100644 --- a/pkgs/development/python-modules/pyunifiprotect/default.nix +++ b/pkgs/development/python-modules/pyunifiprotect/default.nix @@ -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" "" '';