1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 tinydb,
7}:
8
9buildPythonPackage rec {
10 pname = "tinyrecord";
11 version = "0.2.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "eugene-eeo";
16 repo = "tinyrecord";
17 tag = "v${version}";
18 hash = "sha256-mF4hpHuNyiQ5DurRnyLck5e/Vp26GCLkhD8eeSB4NYs=";
19 };
20
21 nativeCheckInputs = [
22 pytestCheckHook
23 tinydb
24 ];
25
26 enabledTestPaths = [ "tests.py" ];
27
28 pythonImportsCheck = [ "tinyrecord" ];
29
30 meta = with lib; {
31 description = "Transaction support for TinyDB";
32 homepage = "https://github.com/eugene-eeo/tinyrecord";
33 changelog = "https://github.com/eugene-eeo/tinyrecord/releases/tag/v${version}";
34 license = licenses.mit;
35 maintainers = with maintainers; [ nickcao ];
36 };
37}