2021-04-15 00:37:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, 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";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.3.8";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-pa3vkIyNblS1LOwBReTqg8JAR2Ii32a2QIHWjau0uZE=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|