1{ lib
2, aiofiles
3, aiohttp
4, aresponses
5, buildPythonPackage
6, fetchFromGitHub
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "aioskybell";
14 version = "22.7.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "tkdrob";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-aBT1fDFtq1vasTvCnAXKV2vmZ6LBLZqRCiepv1HDJ+Q=";
24 };
25
26 propagatedBuildInputs = [
27 aiohttp
28 aiofiles
29 ];
30
31 checkInputs = [
32 aresponses
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "aioskybell"
39 ];
40
41 meta = with lib; {
42 description = "API client for Skybell doorbells";
43 homepage = "https://github.com/tkdrob/aioskybell";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}