Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / uptime-kuma-monitor / default.nix
blobf689942abf93ec9489a1e882f95c3545ab7424cf
1 { lib
2 , requests
3 , buildPythonPackage
4 , fetchPypi
5 , prometheus-client
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "uptime-kuma-monitor";
11   version = "1.0.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.8";
16   src = fetchPypi {
17     pname = "uptime_kuma_monitor";
18     inherit version;
19     sha256 = "0zi4856hj5ar4yidh7366kx3xnh8qzydw9z8vlalcn98jf3jlnk9";
20   };
22   propagatedBuildInputs = [
23     requests
24     prometheus-client
25   ];
27   # Project has no test
28   doCheck = false;
30   pythonImportsCheck = [
31     "uptime_kuma_monitor"
32   ];
34   meta = with lib; {
35     description = "Python wrapper around UptimeKuma /metrics endpoint";
36     homepage = "https://github.com/meichthys/utptime_kuma_monitor";
37     license = with licenses; [ mit ];
38     maintainers = with maintainers; [ fab ];
39   };