mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-14 16:40:09 +03:00
python3Packages.sqlitedict: fix tests, convert to pytestCheckHook
This commit is contained in:
parent
f2f715ef1f
commit
efc81847cb
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user