depot/pkgs/development/tools/database/litecli/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

46 lines
1,015 B
Nix

{ lib
, python3Packages
, fetchPypi
}:
python3Packages.buildPythonApplication rec {
pname = "litecli";
version = "1.11.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-YW3mjYfSuxi/XmaetrWmjVuTfqgaitQ5wfUaJdHIH1Y=";
};
propagatedBuildInputs = with python3Packages; [
cli-helpers
click
configobj
prompt-toolkit
pygments
sqlparse
];
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 ];
};
}