1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 ciso8601,
7 fetchFromGitHub,
8 mashumaro,
9 pytest-asyncio,
10 pytest-cov-stub,
11 pytestCheckHook,
12 pythonOlder,
13 setuptools,
14 typer,
15 yarl,
16}:
17
18buildPythonPackage rec {
19 pname = "aiortm";
20 version = "0.11.0";
21 pyproject = true;
22
23 disabled = pythonOlder "3.12";
24
25 src = fetchFromGitHub {
26 owner = "MartinHjelmare";
27 repo = "aiortm";
28 tag = "v${version}";
29 hash = "sha256-KghKxaa1MhNH13NdUpDiT5h8ZEj5aWLUVhvQKvLC+oM=";
30 };
31
32 pythonRelaxDeps = [ "typer" ];
33
34 build-system = [ setuptools ];
35
36 dependencies = [
37 aiohttp
38 ciso8601
39 mashumaro
40 yarl
41 ];
42
43 optional-dependencies = {
44 cli = [ typer ];
45 };
46
47 nativeCheckInputs = [
48 aioresponses
49 pytest-asyncio
50 pytest-cov-stub
51 pytestCheckHook
52 ]
53 ++ lib.flatten (builtins.attrValues optional-dependencies);
54
55 pythonImportsCheck = [ "aiortm" ];
56
57 meta = with lib; {
58 description = "Library for the Remember the Milk API";
59 homepage = "https://github.com/MartinHjelmare/aiortm";
60 changelog = "https://github.com/MartinHjelmare/aiortm/blob/${src.tag}/CHANGELOG.md";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ fab ];
63 mainProgram = "aiortm";
64 };
65}