1{ lib
2, python3Packages
3, fetchPypi
4}:
5
6python3Packages.buildPythonApplication rec {
7 pname = "litecli";
8 version = "1.9.0";
9 disabled = python3Packages.pythonOlder "3.4";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "sha256-Ia8s+gg91N8ePMqiohFxKbXxchJ1b1luoJDilndsJ6E=";
14 };
15
16 propagatedBuildInputs = with python3Packages; [
17 cli-helpers
18 click
19 configobj
20 prompt-toolkit
21 pygments
22 sqlparse
23 ];
24
25 nativeCheckInputs = with python3Packages; [
26 pytestCheckHook
27 mock
28 ];
29
30 pythonImportsCheck = [ "litecli" ];
31
32 disabledTests = [
33 "test_auto_escaped_col_names"
34 ];
35
36 meta = with lib; {
37 description = "Command-line interface for SQLite";
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}