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