nixpkgs/pkgs/development/tools/database/litecli/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2020-12-26 04:20:00 +00:00
{ lib, python3Packages }:
2019-01-07 17:57:04 +00:00
python3Packages.buildPythonApplication rec {
pname = "litecli";
2020-12-26 04:20:00 +00:00
version = "1.5.0";
2019-01-07 17:57:04 +00:00
# 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;
2020-12-26 04:20:00 +00:00
sha256 = "b09f0804d26b018360b240778612390810e8e00ea0f79d5412fd0d4775c0e3cd";
2019-01-07 17:57:04 +00:00
};
propagatedBuildInputs = with python3Packages; [
cli-helpers
click
configobj
prompt_toolkit
pygments
sqlparse
];
2019-01-31 20:43:35 +00:00
checkInputs = with python3Packages; [
2020-12-26 04:20:00 +00:00
pytestCheckHook
2019-01-31 20:43:35 +00:00
mock
];
2019-01-07 17:57:04 +00:00
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";
2020-12-26 04:20:00 +00:00
changelog = "https://github.com/dbcli/litecli/blob/v${version}/CHANGELOG.md";
2019-01-07 17:57:04 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ Scriptkiddi ];
};
}