1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatch-regex-commit,
7 hatchling,
8 mashumaro,
9 prometheus-client,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "pythonkuma";
15 version = "0.3.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.12";
19
20 src = fetchFromGitHub {
21 owner = "tr4nt0r";
22 repo = "pythonkuma";
23 tag = "v${version}";
24 hash = "sha256-1coD4bDLMWQLvN3zt/++hmut0DLdg7aAKz5HtDhomso=";
25 };
26
27 build-system = [
28 hatch-regex-commit
29 hatchling
30 ];
31
32 dependencies = [
33 aiohttp
34 mashumaro
35 prometheus-client
36 ];
37
38 # Tests are minimal and don't test functionality
39 doCheck = false;
40
41 pythonImportsCheck = [
42 "pythonkuma"
43 ];
44
45 meta = {
46 description = "Simple Python wrapper for Uptime Kuma";
47 homepage = "https://github.com/tr4nt0r/pythonkuma";
48 changelog = "https://github.com/tr4nt0r/pythonkuma/releases/tag/v${version}";
49 license = lib.licenses.mit;
50 maintainers = [ lib.maintainers.jamiemagee ];
51 };
52}