nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 requests,
4 buildPythonPackage,
5 fetchPypi,
6 prometheus-client,
7}:
8
9buildPythonPackage rec {
10 pname = "uptime-kuma-monitor";
11 version = "1.0.0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 pname = "uptime_kuma_monitor";
16 inherit version;
17 sha256 = "0zi4856hj5ar4yidh7366kx3xnh8qzydw9z8vlalcn98jf3jlnk9";
18 };
19
20 propagatedBuildInputs = [
21 requests
22 prometheus-client
23 ];
24
25 # Project has no test
26 doCheck = false;
27
28 pythonImportsCheck = [ "uptime_kuma_monitor" ];
29
30 meta = {
31 description = "Python wrapper around UptimeKuma /metrics endpoint";
32 homepage = "https://github.com/meichthys/utptime_kuma_monitor";
33 license = with lib.licenses; [ mit ];
34 maintainers = with lib.maintainers; [ fab ];
35 };
36}