d2947cfef0
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, aiofiles
|
|
, aiohttp
|
|
, aioresponses
|
|
, aiounittest
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pubnub
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yalexs";
|
|
version = "1.2.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-jg2tsCkAAm7/NJ5wcwA/2E0GspM747WHwcXWnC0j1Q8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiofiles
|
|
aiohttp
|
|
pubnub
|
|
pyjwt
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
aioresponses
|
|
aiounittest
|
|
asynctest
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
postPatch = ''
|
|
# Not used requirement
|
|
substituteInPlace setup.py \
|
|
--replace '"vol",' ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"yalexs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for Yale Access (formerly August) Smart Lock and Doorbell";
|
|
homepage = "https://github.com/bdraco/yalexs";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|