1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatch-regex-commit,
6 hatchling,
7 lib,
8 mashumaro,
9 orjson,
10 pytest-asyncio,
11 pytest-cov-stub,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "aiontfy";
17 version = "0.6.1";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "tr4nt0r";
22 repo = "aiontfy";
23 tag = "v${version}";
24 hash = "sha256-43sl9jCJErROEOIllUFizG6IIBpFWCQTRyJP+0u1z+M=";
25 };
26
27 build-system = [
28 hatch-regex-commit
29 hatchling
30 ];
31
32 dependencies = [
33 aiohttp
34 mashumaro
35 orjson
36 ];
37
38 pythonImportsCheck = [ "aiontfy" ];
39
40 nativeCheckInputs = [
41 pytest-asyncio
42 pytest-cov-stub
43 pytestCheckHook
44 ];
45
46 meta = {
47 changelog = "https://github.com/tr4nt0r/aiontfy/releases/tag/${src.tag}";
48 description = "Async ntfy client library";
49 homepage = "https://github.com/tr4nt0r/aiontfy";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ dotlambda ];
52 };
53}