Merge pull request #146303 from fabaff/uptime-kuma-monitor

python3Packages.uptime-kuma-monitor: init at 1.0.0

authored by Fabian Affolter and committed by GitHub b702a9d3 963841d1

+42
+40
pkgs/development/python-modules/uptime-kuma-monitor/default.nix
··· 1 + { lib 2 + , requests 3 + , buildPythonPackage 4 + , fetchPypi 5 + , prometheus-client 6 + , pythonOlder 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "uptime-kuma-monitor"; 11 + version = "1.0.0"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.8"; 15 + 16 + src = fetchPypi { 17 + pname = "uptime_kuma_monitor"; 18 + inherit version; 19 + sha256 = "0zi4856hj5ar4yidh7366kx3xnh8qzydw9z8vlalcn98jf3jlnk9"; 20 + }; 21 + 22 + propagatedBuildInputs = [ 23 + requests 24 + prometheus-client 25 + ]; 26 + 27 + # Project has no test 28 + doCheck = false; 29 + 30 + pythonImportsCheck = [ 31 + "uptime_kuma_monitor" 32 + ]; 33 + 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 + }; 40 + }
+2
pkgs/top-level/python-packages.nix
··· 9658 9658 9659 9659 uptime = callPackage ../development/python-modules/uptime { }; 9660 9660 9661 + uptime-kuma-monitor = callPackage ../development/python-modules/uptime-kuma-monitor { }; 9662 + 9661 9663 uranium = callPackage ../development/python-modules/uranium { }; 9662 9664 9663 9665 uritemplate = callPackage ../development/python-modules/uritemplate { };