summary refs log tree commit diff
path: root/pkgs/development/python-modules/clickhouse-cli/default.nix
blob: 68d69023e25d59c37d71a57299761aedfc1755ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchPypi
, click
, prompt-toolkit
, pygments
, requests
, sqlparse
}:

buildPythonPackage rec {
  pname = "clickhouse-cli";
  version = "0.3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-fDvUdL6LzgCv6LDmB0R0M7v6BbnbL68p9pHMebP58h8=";
  };

  propagatedBuildInputs = [
    click
    prompt-toolkit
    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 ];
  };
}