depot/third_party/nixpkgs/pkgs/development/python-modules/yalexs/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

74 lines
1.4 KiB
Nix

{
lib,
aiofiles,
aiohttp,
aioresponses,
aiounittest,
buildPythonPackage,
ciso8601,
fetchFromGitHub,
freenub,
poetry-core,
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.6.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bdraco";
repo = "yalexs";
rev = "refs/tags/v${version}";
hash = "sha256-KUm+e/ZrfkrS4MA0Wb3VAo9URYmC0ucKw3L+yMMoMtU=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "aiohttp" ];
dependencies = [
aiofiles
aiohttp
ciso8601
freenub
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 ];
};
}