2021-04-15 00:37:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-01-13 08:15:51 +00:00
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, setuptools
|
2021-04-15 00:37:46 +00:00
|
|
|
, click
|
2021-08-05 21:33:18 +00:00
|
|
|
, prompt-toolkit
|
2021-04-15 00:37:46 +00:00
|
|
|
, pygments
|
|
|
|
, requests
|
|
|
|
, sqlparse
|
|
|
|
}:
|
|
|
|
|
|
|
|
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 = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"sqlparse"
|
|
|
|
];
|
|
|
|
|
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; {
|
|
|
|
description = "A third-party client for the Clickhouse DBMS server";
|
|
|
|
homepage = "https://github.com/hatarist/clickhouse-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ivan-babrou ];
|
|
|
|
};
|
|
|
|
}
|