My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/yalexs/default.nix

65 lines
1.1 KiB

{ lib
, aiofiles
, aiohttp
, aioresponses
, aiounittest
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pubnub
, pyjwt
, pytestCheckHook
, python-dateutil
, pythonOlder
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "yalexs";
version = "1.1.24";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "v${version}";
sha256 = "sha256-6wuTY1nH7btGEktH5UmTV2rMbsap5M55tJx3fljsnlY=";
};
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 ];
};
}