about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-17 02:56:57 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-23 01:09:33 +0100
commitefc81847cbe8e969104786a9faf6e7e6debe3d6f (patch)
treef4859bd7cef67b33ab1576103c16ccb045980986
parentf2f715ef1fadc3fa8a23cfc90e5c57d6dd68d286 (diff)
python3Packages.sqlitedict: fix tests, convert to pytestCheckHook
-rw-r--r--pkgs/development/python-modules/sqlitedict/default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/sqlitedict/default.nix b/pkgs/development/python-modules/sqlitedict/default.nix
index b9af16855a404..178617e18dea8 100644
--- a/pkgs/development/python-modules/sqlitedict/default.nix
+++ b/pkgs/development/python-modules/sqlitedict/default.nix
@@ -1,4 +1,8 @@
-{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+}:
 
 buildPythonPackage rec {
   pname = "sqlitedict";
@@ -11,12 +15,14 @@ buildPythonPackage rec {
     sha256 = "08fr81rz1fz35d35kravg7vl234aqagr9wqb09x6wi9lx9zkkh28";
   };
 
-  checkInputs = [ pytest ];
-
-  checkPhase = ''
-    pytest tests
+  preCheck = ''
+    mkdir tests/db
   '';
 
+  checkInputs = [
+    pytestCheckHook
+  ];
+
   meta = with lib; {
     description = "Persistent, thread-safe dict";
     homepage = "https://github.com/RaRe-Technologies/sqlitedict";