depot/third_party/nixpkgs/pkgs/development/tools/database/litecli/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

45 lines
1 KiB
Nix

{ lib
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "litecli";
version = "1.9.0";
disabled = python3Packages.pythonOlder "3.4";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "sha256-Ia8s+gg91N8ePMqiohFxKbXxchJ1b1luoJDilndsJ6E=";
};
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";
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 ];
};
}