1
0
nixfiles/pkgs/uptimestatus/default.nix

35 lines
713 B
Nix
Raw Permalink Normal View History

2021-05-15 18:43:15 +02:00
{
2022-10-17 23:03:09 +02:00
pkgs,
2021-05-15 18:43:15 +02:00
buildPythonPackage,
flask,
requests,
python3,
}:
let
2022-10-17 23:03:09 +02:00
src = pkgs.fetchgit {
2021-05-15 18:43:15 +02:00
url = "https://git.clerie.de/clerie/uptime-status.git";
rev = "caacaced97617838bbd9b7b91a4e3d06e411139b";
2022-10-17 23:03:09 +02:00
sha256 = "sha256-qVvUZ+j2JnG26Fl/UcfpjY30RQjAPqCCwbxtz/+r/dU=";
2021-05-15 18:43:15 +02:00
};
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;
}