81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, aiofiles
|
|
, aiohttp
|
|
, aioresponses
|
|
, aiounittest
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pubnub
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yalexs";
|
|
version = "1.1.20";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0wcvlgKlWhj9jZ53c+uEk9F28+m7BwsmlwTRlBMPoho=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiofiles
|
|
aiohttp
|
|
pubnub
|
|
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 ];
|
|
};
|
|
}
|