about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pgsanity/default.nix
diff options
context:
space:
mode:
authorWinter <winter@winter.cafe>2022-08-06 12:32:04 -0400
committerWinter <winter@winter.cafe>2022-08-13 14:09:43 -0400
commit19adc3341cf3adfdbd408646aedbf8e62ce3eece (patch)
treeeee99752039b7cba720978e962c0f3ee1685ebf4 /pkgs/development/python-modules/pgsanity/default.nix
parente8fbb38a51380fe6e56351b5750dddcccff79c4c (diff)
treewide: migrate to pythonPackages.unittestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/pgsanity/default.nix')
-rw-r--r--pkgs/development/python-modules/pgsanity/default.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/pgsanity/default.nix b/pkgs/development/python-modules/pgsanity/default.nix
index 26e5eb2bd6acc..82d636979e101 100644
--- a/pkgs/development/python-modules/pgsanity/default.nix
+++ b/pkgs/development/python-modules/pgsanity/default.nix
@@ -2,7 +2,9 @@
 , python
 , fetchPypi
 , buildPythonPackage
-, postgresql }:
+, postgresql
+, unittestCheckHook
+}:
 
 buildPythonPackage rec {
   pname = "pgsanity";
@@ -13,11 +15,7 @@ buildPythonPackage rec {
     sha256 = "de0bbd6fe4f98bf5139cb5f466eac2e2abaf5a7b050b9e4867b87bf360873173";
   };
 
-  checkPhase = ''
-    ${python.interpreter} -m unittest discover -s test
-  '';
-
-  checkInputs = [ postgresql ];
+  checkInputs = [ unittestCheckHook postgresql ];
   propagatedBuildInputs = [ postgresql ];
 
   meta = with lib; {