python3Packages.sqlitedict: fix tests, convert to pytestCheckHook

This commit is contained in:
Martin Weinelt 2022-01-17 02:56:57 +01:00
parent f2f715ef1f
commit efc81847cb

View File

@ -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";