1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 click,
7 prompt-toolkit,
8 pygments,
9 requests,
10 sqlparse,
11}:
12
13buildPythonPackage rec {
14 pname = "clickhouse-cli";
15 version = "0.3.9";
16 format = "pyproject";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-gkgLAedUtzGv/4P+D56M2Pb5YecyqyVYp06ST62sjdY=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 pythonRelaxDeps = [ "sqlparse" ];
28
29 propagatedBuildInputs = [
30 click
31 prompt-toolkit
32 pygments
33 requests
34 sqlparse
35 ];
36
37 pythonImportsCheck = [ "clickhouse_cli" ];
38
39 meta = with lib; {
40 description = "Third-party client for the Clickhouse DBMS server";
41 mainProgram = "clickhouse-cli";
42 homepage = "https://github.com/hatarist/clickhouse-cli";
43 license = licenses.mit;
44 maintainers = with maintainers; [ ivan-babrou ];
45 };
46}