1{
2 lib,
3 aiohttp,
4 aresponses,
5 buildPythonPackage,
6 certifi,
7 ciso8601,
8 fetchFromGitHub,
9 frozenlist,
10 mashumaro,
11 poetry-core,
12 pyjwt,
13 pytest-aiohttp,
14 pytest-asyncio,
15 pytestCheckHook,
16 pytest-cov-stub,
17 pythonOlder,
18 yarl,
19}:
20
21buildPythonPackage rec {
22 pname = "aionotion";
23 version = "2024.03.0";
24 pyproject = true;
25
26 disabled = pythonOlder "3.7";
27
28 src = fetchFromGitHub {
29 owner = "bachya";
30 repo = "aionotion";
31 tag = version;
32 hash = "sha256-BsbfLb5wCVxR8v2U2Zzt7LMl7XJcZWfVjZN47VDkhFc=";
33 };
34
35 nativeBuildInputs = [ poetry-core ];
36
37 propagatedBuildInputs = [
38 aiohttp
39 certifi
40 ciso8601
41 frozenlist
42 mashumaro
43 pyjwt
44 yarl
45 ];
46
47 __darwinAllowLocalNetworking = true;
48
49 nativeCheckInputs = [
50 aresponses
51 pytest-aiohttp
52 pytest-asyncio
53 pytest-cov-stub
54 pytestCheckHook
55 ];
56
57 disabledTestPaths = [ "examples" ];
58
59 pythonImportsCheck = [ "aionotion" ];
60
61 meta = with lib; {
62 description = "Python library for Notion Home Monitoring";
63 homepage = "https://github.com/bachya/aionotion";
64 changelog = "https://github.com/bachya/aionotion/releases/tag/${version}";
65 license = with licenses; [ mit ];
66 maintainers = with maintainers; [ fab ];
67 };
68}