depot/third_party/nixpkgs/pkgs/development/python-modules/yalexs/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

76 lines
1.4 KiB
Nix

{
lib,
aiofiles,
aiohttp,
aioresponses,
aiounittest,
buildPythonPackage,
ciso8601,
fetchFromGitHub,
freenub,
poetry-core,
propcache,
pyjwt,
pytest-asyncio,
pytest-cov-stub,
pytest-freezegun,
pytestCheckHook,
python-dateutil,
python-socketio,
pythonOlder,
requests-mock,
requests,
typing-extensions,
}:
buildPythonPackage rec {
pname = "yalexs";
version = "8.10.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bdraco";
repo = "yalexs";
rev = "refs/tags/v${version}";
hash = "sha256-0fC12QsCOgFc6GJk5T7kCjVHe9W4Fhwmtv3dwJVh9mM=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "aiohttp" ];
dependencies = [
aiofiles
aiohttp
ciso8601
freenub
propcache
pyjwt
python-dateutil
python-socketio
requests
typing-extensions
] ++ python-socketio.optional-dependencies.asyncio_client;
nativeCheckInputs = [
aioresponses
aiounittest
pytest-asyncio
pytest-cov-stub
pytest-freezegun
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "yalexs" ];
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/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}