1{ lib
2, python3Packages
3, fetchPypi
4}:
5
6python3Packages.buildPythonApplication rec {
7 pname = "litecli";
8 version = "1.11.0";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "sha256-YW3mjYfSuxi/XmaetrWmjVuTfqgaitQ5wfUaJdHIH1Y=";
13 };
14
15 propagatedBuildInputs = with python3Packages; [
16 cli-helpers
17 click
18 configobj
19 prompt-toolkit
20 pygments
21 sqlparse
22 ];
23
24 nativeCheckInputs = with python3Packages; [
25 pytestCheckHook
26 mock
27 ];
28
29 pythonImportsCheck = [ "litecli" ];
30
31 disabledTests = [
32 "test_auto_escaped_col_names"
33 ];
34
35 meta = with lib; {
36 description = "Command-line interface for SQLite";
37 mainProgram = "litecli";
38 longDescription = ''
39 A command-line client for SQLite databases that has auto-completion and syntax highlighting.
40 '';
41 homepage = "https://litecli.com";
42 changelog = "https://github.com/dbcli/litecli/blob/v${version}/CHANGELOG.md";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ Scriptkiddi ];
45 };
46}