diff options
Diffstat (limited to 'pkgs/development/python-modules/blinkpy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/blinkpy/default.nix | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/blinkpy/default.nix b/pkgs/development/python-modules/blinkpy/default.nix index b2b7dc6dc9bb5..00c36c80de63c 100644 --- a/pkgs/development/python-modules/blinkpy/default.nix +++ b/pkgs/development/python-modules/blinkpy/default.nix @@ -2,8 +2,10 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, aiofiles, aiohttp, + pytest-asyncio, pytestCheckHook, python-dateutil, python-slugify, @@ -15,7 +17,7 @@ buildPythonPackage rec { pname = "blinkpy"; - version = "0.22.7"; + version = "0.23.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -24,9 +26,17 @@ buildPythonPackage rec { owner = "fronzbot"; repo = "blinkpy"; rev = "refs/tags/v${version}"; - hash = "sha256-FfjvF6PBM+18JgQBP6vyElQYWMVizAEGk92ILwxpFSk="; + hash = "sha256-MWXOxE0nxBFhkAWjy7qFPhv4AO6VjGf+fAiyaWXeiX8="; }; + patches = [ + (fetchpatch2 { + # Fix tests with aiohttp 3.10+ + url = "https://github.com/fronzbot/blinkpy/commit/e2c747b5ad295424b08ff4fb03204129155666fc.patch"; + hash = "sha256-FapgAZcKBWqtAPjRl2uOFgnYPoWq6UU88XGLO7oCmDI="; + }) + ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace ', "wheel~=0.40.0"' "" \ @@ -44,7 +54,10 @@ buildPythonPackage rec { sortedcontainers ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "blinkpy" |