mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "litecli";
|
|
version = "1.12.3";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbcli";
|
|
repo = "litecli";
|
|
rev = "v${version}";
|
|
hash = "sha256-TPwzXfb4n6wTe6raQ5IowKdhGkKrf2pmSS2+Q03NKYk=";
|
|
};
|
|
|
|
dependencies =
|
|
with python3Packages;
|
|
[
|
|
cli-helpers
|
|
click
|
|
configobj
|
|
prompt-toolkit
|
|
pygments
|
|
sqlparse
|
|
]
|
|
++ cli-helpers.optional-dependencies.styles;
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "litecli" ];
|
|
|
|
disabledTests = [
|
|
"test_auto_escaped_col_names"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Command-line interface for SQLite";
|
|
mainProgram = "litecli";
|
|
longDescription = ''
|
|
A command-line client for SQLite databases that has auto-completion and syntax highlighting.
|
|
'';
|
|
homepage = "https://litecli.com";
|
|
changelog = "https://github.com/dbcli/litecli/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|