1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 click,
7 click-default-group,
8 python-dateutil,
9 sqlite-fts4,
10 tabulate,
11 pluggy,
12 pytestCheckHook,
13 hypothesis,
14 testers,
15 sqlite-utils,
16 setuptools,
17}:
18buildPythonPackage rec {
19 pname = "sqlite-utils";
20 version = "3.38";
21 pyproject = true;
22
23 build-system = [ setuptools ];
24
25 disabled = pythonOlder "3.7";
26
27 src = fetchPypi {
28 inherit version;
29 pname = "sqlite_utils";
30 hash = "sha256-Gud7kxOEBSIFoVR41ClGT2xno6w7Tq/TxnSskA9iOqs=";
31 };
32
33 dependencies = [
34 click
35 click-default-group
36 python-dateutil
37 sqlite-fts4
38 tabulate
39 pluggy
40 ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 hypothesis
45 ];
46
47 pythonImportsCheck = [ "sqlite_utils" ];
48
49 passthru.tests.version = testers.testVersion { package = sqlite-utils; };
50
51 meta = with lib; {
52 description = "Python CLI utility and library for manipulating SQLite databases";
53 mainProgram = "sqlite-utils";
54 homepage = "https://github.com/simonw/sqlite-utils";
55 changelog = "https://github.com/simonw/sqlite-utils/releases/tag/${version}";
56 license = licenses.asl20;
57 maintainers = with maintainers; [
58 meatcar
59 techknowlogick
60 ];
61 };
62}