1
0

Add status page to monitoring-3

This commit is contained in:
2021-05-15 18:43:15 +02:00
parent 1caff12782
commit 6ee3387680
3 changed files with 59 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ self: super: {
flask-excel = self.python3.pkgs.callPackage ./flask-excel {};
pyexcel-xlsx = self.python3.pkgs.callPackage ./pyexcel-xlsx {};
pyexcel-webio = self.python3.pkgs.callPackage ./pyexcel-webio {};
uptimestatus = self.python3.pkgs.callPackage ./uptimestatus {};
wetter = self.python3.pkgs.callPackage ./wetter {
inherit (self) python2 pkgconfig libsass;
};

View File

@@ -0,0 +1,32 @@
{
buildPythonPackage,
flask,
requests,
python3,
}:
let
src = fetchGit {
url = "https://git.clerie.de/clerie/uptime-status.git";
rev = "caacaced97617838bbd9b7b91a4e3d06e411139b";
};
pname = "uptimestatus";
version = "0.0.1";
in buildPythonPackage rec {
inherit src pname version;
propagatedBuildInputs = [
flask
requests
];
postInstall = ''
mkdir -p $out/${python3.sitePackages}/uptimestatus
cp -r uptimestatus/static $out/${python3.sitePackages}/uptimestatus/static
cp -r uptimestatus/templates $out/${python3.sitePackages}/uptimestatus/templates
'';
doCheck = false;
}