nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, python3Packages }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "litecli";
5 version = "1.1.0";
6
7 # Python 2 won't have prompt_toolkit 2.x.x
8 # See: https://github.com/NixOS/nixpkgs/blob/f49e2ad3657dede09dc998a4a98fd5033fb52243/pkgs/top-level/python-packages.nix#L3408
9 disabled = python3Packages.isPy27;
10
11 src = python3Packages.fetchPypi {
12 inherit pname version;
13 sha256 = "0cqil2cmnbw0jvb14v6kbr7l9yarfgy253cbb8v9znp0l4qfs7ra";
14 };
15
16 propagatedBuildInputs = with python3Packages; [
17 cli-helpers
18 click
19 configobj
20 prompt_toolkit
21 pygments
22 sqlparse
23 ];
24
25 checkInputs = with python3Packages; [
26 pytest
27 mock
28 ];
29
30 preCheck = ''
31 export XDG_CONFIG_HOME=$TMP
32 # add missing file
33 echo "litecli is awesome!" > tests/test.txt
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 license = licenses.bsd3;
43 maintainers = with maintainers; [ Scriptkiddi ];
44 broken = true;
45 };
46}