diff --git a/pkgs/development/python-modules/yalexs/default.nix b/pkgs/development/python-modules/yalexs/default.nix index e785273c0b2b..b29576d5f691 100644 --- a/pkgs/development/python-modules/yalexs/default.nix +++ b/pkgs/development/python-modules/yalexs/default.nix @@ -12,7 +12,10 @@ pyjwt, pytestCheckHook, python-dateutil, + python-socketio, pythonOlder, + pytest-asyncio, + pytest-cov-stub, requests-mock, requests, typing-extensions, @@ -20,7 +23,7 @@ buildPythonPackage rec { pname = "yalexs"; - version = "8.4.1"; + version = "8.6.3"; pyproject = true; disabled = pythonOlder "3.9"; @@ -29,16 +32,13 @@ buildPythonPackage rec { owner = "bdraco"; repo = "yalexs"; rev = "refs/tags/v${version}"; - hash = "sha256-2n/+3VkKtwNlDgxoraIrx/ZUZ9TydybWIkLDTdbMd1w="; + hash = "sha256-z01q+sUuj9BvcN56+c3vti8xUnWhYGuV/BTXhvcTl30="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "-v -Wdefault --cov=yalexs --cov-report=term-missing:skip-covered" "" - ''; - build-system = [ poetry-core ]; + pythonRelaxDeps = [ "aiohttp" ]; + dependencies = [ aiofiles aiohttp @@ -46,17 +46,17 @@ buildPythonPackage rec { freenub pyjwt python-dateutil + python-socketio requests typing-extensions - ]; - - # aiounittest is not supported on 3.12 - doCheck = pythonOlder "3.12"; + ] ++ python-socketio.optional-dependencies.asyncio_client; nativeCheckInputs = [ aioresponses aiounittest pytestCheckHook + pytest-asyncio + pytest-cov-stub requests-mock ]; @@ -65,7 +65,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python API for Yale Access (formerly August) Smart Lock and Doorbell"; homepage = "https://github.com/bdraco/yalexs"; - changelog = "https://github.com/bdraco/yalexs/releases/tag/v${version}"; + changelog = "https://github.com/bdraco/yalexs/blob/${src.rev}/CHANGELOG.md"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };