2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
click,
|
|
|
|
prompt-toolkit,
|
|
|
|
pygments,
|
|
|
|
requests,
|
|
|
|
sqlparse,
|
2021-04-15 00:37:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clickhouse-cli";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.3.9";
|
|
|
|
format = "pyproject";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-gkgLAedUtzGv/4P+D56M2Pb5YecyqyVYp06ST62sjdY=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "sqlparse" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2021-04-15 00:37:46 +00:00
|
|
|
pygments
|
|
|
|
requests
|
|
|
|
sqlparse
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "clickhouse_cli" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Third-party client for the Clickhouse DBMS server";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "clickhouse-cli";
|
2021-04-15 00:37:46 +00:00
|
|
|
homepage = "https://github.com/hatarist/clickhouse-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ivan-babrou ];
|
|
|
|
};
|
|
|
|
}
|