1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 packaging, 6 python-socketio, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "uptime-kuma-api"; 12 version = "1.2.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 pname = "uptime_kuma_api"; 19 inherit version; 20 hash = "sha256-tZ5ln3sy6W5RLcwjzLbhobCNLbHXIhXIzrcOVCG+Z+E="; 21 }; 22 23 propagatedBuildInputs = [ 24 packaging 25 python-socketio 26 python-socketio.optional-dependencies.client 27 ]; 28 29 pythonImportsCheck = [ "uptime_kuma_api" ]; 30 31 # Tests need an uptime-kuma instance to run 32 doCheck = false; 33 34 meta = with lib; { 35 description = "Python wrapper for the Uptime Kuma Socket.IO API"; 36 homepage = "https://github.com/lucasheld/uptime-kuma-api"; 37 changelog = "https://github.com/lucasheld/uptime-kuma-api/blob/${version}/CHANGELOG.md"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ julienmalka ]; 40 }; 41}