Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / uptime-kuma-api / default.nix
blob1d7db943ad814567a50fb0ab9399085e820f3859
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , python-socketio
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "uptime-kuma-api";
10   version = "1.2.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     pname = "uptime_kuma_api";
17     inherit version;
18     hash = "sha256-tZ5ln3sy6W5RLcwjzLbhobCNLbHXIhXIzrcOVCG+Z+E=";
19   };
21   propagatedBuildInputs = [
22     python-socketio
23     python-socketio.optional-dependencies.client
24   ];
26   pythonImportsCheck = [
27     "uptime_kuma_api"
28   ];
30   # Tests need an uptime-kuma instance to run
31   doCheck = false;
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   };