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