8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib, python3Packages }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "litecli";
|
|
version = "1.3.2";
|
|
|
|
# Python 2 won't have prompt_toolkit 2.x.x
|
|
# See: https://github.com/NixOS/nixpkgs/blob/f49e2ad3657dede09dc998a4a98fd5033fb52243/pkgs/top-level/python-packages.nix#L3408
|
|
disabled = python3Packages.isPy27;
|
|
|
|
src = python3Packages.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0bfx7fw6jnkqxa82xvd10yx1w2wbmrrqxwbh4anp5x9wnl91a9lp";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
cli-helpers
|
|
click
|
|
configobj
|
|
prompt_toolkit
|
|
pygments
|
|
sqlparse
|
|
];
|
|
|
|
checkInputs = with python3Packages; [
|
|
pytest
|
|
mock
|
|
];
|
|
|
|
preCheck = ''
|
|
export XDG_CONFIG_HOME=$TMP
|
|
# add missing file
|
|
mkdir -p tests/data
|
|
echo -e "t1,11\nt2,22\n" > tests/data/import_data.csv
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command-line interface for SQLite";
|
|
longDescription = ''
|
|
A command-line client for SQLite databases that has auto-completion and syntax highlighting.
|
|
'';
|
|
homepage = "https://litecli.com";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|