From 09d82350943286abc4a0b66c84287eb30a4b6f43 Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Sat, 4 Sep 2021 21:52:24 +0200
Subject: feeds: imm-notmuch-insert

---
 overlays/worktime/default.nix | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'overlays/worktime')

diff --git a/overlays/worktime/default.nix b/overlays/worktime/default.nix
index ab6fb40a..a8fe79c6 100644
--- a/overlays/worktime/default.nix
+++ b/overlays/worktime/default.nix
@@ -3,7 +3,7 @@ final: prev: {
     name = "worktime";
     src = ./worktime.py;
 
-    phases = [ "buildPhase" "installPhase" ];
+    phases = [ "buildPhase" "checkPhase" "installPhase" ];
 
     python = prev.python39.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser tabulate]);
 
@@ -11,6 +11,11 @@ final: prev: {
       substituteAll $src worktime
     '';
 
+    doCheck = true;
+    checkPhase = ''
+      ${python}/bin/python -m py_compile worktime
+    '';
+
     installPhase = ''
       install -m 0755 -D -t $out/bin \
         worktime
-- 
cgit v1.2.3