diff options
Diffstat (limited to 'pkgs/development/python-modules/yalexs/default.nix')
-rw-r--r-- | pkgs/development/python-modules/yalexs/default.nix | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/yalexs/default.nix b/pkgs/development/python-modules/yalexs/default.nix index 908b4d4b50b4e..f55c4b98416b7 100644 --- a/pkgs/development/python-modules/yalexs/default.nix +++ b/pkgs/development/python-modules/yalexs/default.nix @@ -7,20 +7,25 @@ buildPythonPackage, ciso8601, fetchFromGitHub, - pubnub, + freenub, + poetry-core, + propcache, pyjwt, + pytest-asyncio, + pytest-cov-stub, + pytest-freezegun, pytestCheckHook, python-dateutil, + python-socketio, pythonOlder, - requests, requests-mock, - poetry-core, + requests, typing-extensions, }: buildPythonPackage rec { pname = "yalexs"; - version = "6.4.1"; + version = "8.10.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -29,33 +34,32 @@ buildPythonPackage rec { owner = "bdraco"; repo = "yalexs"; rev = "refs/tags/v${version}"; - hash = "sha256-lCRil1SeYXZeXT0SJielJg2Ma8voBXPgij+RK/oT1iU="; + hash = "sha256-0fC12QsCOgFc6GJk5T7kCjVHe9W4Fhwmtv3dwJVh9mM="; }; - 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 ciso8601 - pubnub + freenub + propcache 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 + pytest-asyncio + pytest-cov-stub + pytest-freezegun pytestCheckHook requests-mock ]; @@ -65,7 +69,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 ]; }; |