1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, fetchFromGitHub
6, poetry-core
7, pytest-aiohttp
8, pytest-asyncio
9, pytest-cov
10, pytestCheckHook
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "aionotion";
16 version = "2021.10.0";
17 format = "pyproject";
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "bachya";
22 repo = pname;
23 rev = version;
24 sha256 = "sha256-5bu2XveDi2e6lGdI/T+0apqXzcnqdztVtaHEpp+Vkzs=";
25 };
26
27 nativeBuildInputs = [ poetry-core ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 ];
32
33 checkInputs = [
34 aresponses
35 pytest-aiohttp
36 pytest-asyncio
37 pytest-cov
38 pytestCheckHook
39 ];
40
41 disabledTestPaths = [ "examples" ];
42
43 pythonImportsCheck = [ "aionotion" ];
44
45 meta = with lib; {
46 description = "Python library for Notion Home Monitoring";
47 homepage = "https://github.com/bachya/aionotion";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 };
51}