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