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