2021-04-08 16:26:57 +00:00
|
|
|
{ lib
|
|
|
|
, aiofiles
|
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
|
|
|
, aiounittest
|
|
|
|
, buildPythonPackage
|
2023-05-24 13:37:59 +00:00
|
|
|
, ciso8601
|
2021-04-08 16:26:57 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pubnub
|
2022-02-20 05:27:41 +00:00
|
|
|
, pyjwt
|
2021-04-08 16:26:57 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, requests-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yalexs";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.5.2";
|
2021-12-21 02:18:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bdraco";
|
|
|
|
repo = pname;
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-IkjRoomRcUQSTLloLpiyO2Llk3NZYxbx0oeH8TCVAHc=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
aiohttp
|
2023-05-24 13:37:59 +00:00
|
|
|
ciso8601
|
2021-04-08 16:26:57 +00:00
|
|
|
pubnub
|
2022-02-20 05:27:41 +00:00
|
|
|
pyjwt
|
2021-04-08 16:26:57 +00:00
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-08 16:26:57 +00:00
|
|
|
aioresponses
|
|
|
|
aiounittest
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Not used requirement
|
2021-12-21 02:18:32 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"vol",' ""
|
2021-04-08 16:26:57 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yalexs"
|
|
|
|
];
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for Yale Access (formerly August) Smart Lock and Doorbell";
|
|
|
|
homepage = "https://github.com/bdraco/yalexs";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/bdraco/yalexs/releases/tag/v${version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|