mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
aiofiles,
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
ciso8601,
|
|
fetchFromGitHub,
|
|
freenub,
|
|
poetry-core,
|
|
propcache,
|
|
pyjwt,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytest-freezegun,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
python-socketio,
|
|
requests-mock,
|
|
requests,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yalexs";
|
|
version = "9.2.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = "yalexs";
|
|
tag = "v${version}";
|
|
hash = "sha256-HZN3ot5z/JbWZaWLffyTWLneD1gG3tTdYLKevXYnJnw=";
|
|
};
|
|
|
|
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
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytest-freezegun
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
disabledTests = [
|
|
# aiohttp api breakage, remove when bumping to 9.2.8 or newer
|
|
"test__raise_response_exceptions"
|
|
];
|
|
|
|
pythonImportsCheck = [ "yalexs" ];
|
|
|
|
meta = {
|
|
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.tag}/CHANGELOG.md";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|