1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 dataproperty,
6 mbstrdecoder,
7 pathvalidate,
8 sqliteschema,
9 setuptools,
10 tabledata,
11 typepy,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "SimpleSQLite";
17 version = "1.5.4";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "thombashi";
22 repo = "SimpleSQLite";
23 tag = "v${version}";
24 hash = "sha256-PObyZmmECxp6keRymYFGi4Uf07yNHu6rUIqSrRx2bPE=";
25 };
26
27 nativeBuildInputs = [ setuptools ];
28
29 propagatedBuildInputs = [
30 dataproperty
31 mbstrdecoder
32 pathvalidate
33 sqliteschema
34 tabledata
35 typepy
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39 pythonImportsCheck = [ "simplesqlite" ];
40
41 meta = with lib; {
42 description = "Python library to simplify SQLite database operations";
43 homepage = "https://github.com/thombashi/simplesqlite";
44 license = licenses.mit;
45 maintainers = with maintainers; [ henrirosten ];
46 };
47}