1{ lib
2, aiofiles
3, aiohttp
4, aioresponses
5, aiounittest
6, asynctest
7, buildPythonPackage
8, fetchFromGitHub
9, pubnub
10, pytestCheckHook
11, python-dateutil
12, pythonOlder
13, requests
14, requests-mock
15}:
16
17buildPythonPackage rec {
18 pname = "yalexs";
19 version = "1.1.13";
20 disabled = pythonOlder "3.6";
21
22 src = fetchFromGitHub {
23 owner = "bdraco";
24 repo = pname;
25 rev = "v${version}";
26 sha256 = "0938540n60xv7kxam3azszn3nj0mnhhgh5p4hgbfxj43bkwpqz4n";
27 };
28
29 propagatedBuildInputs = [
30 aiofiles
31 aiohttp
32 pubnub
33 python-dateutil
34 requests
35 ];
36
37 checkInputs = [
38 aioresponses
39 aiounittest
40 asynctest
41 pytestCheckHook
42 requests-mock
43 ];
44
45 postPatch = ''
46 # Not used requirement
47 substituteInPlace setup.py --replace '"vol",' ""
48 '';
49
50 pythonImportsCheck = [ "yalexs" ];
51
52 meta = with lib; {
53 description = "Python API for Yale Access (formerly August) Smart Lock and Doorbell";
54 homepage = "https://github.com/bdraco/yalexs";
55 license = with licenses; [ mit ];
56 maintainers = with maintainers; [ fab ];
57 };
58}