21 # not in tests_require, but should be
24 buildPythonPackage rec {
25 pname = "clickhouse-connect";
28 format = "setuptools";
30 disabled = pythonOlder "3.7";
32 src = fetchFromGitHub {
33 repo = "clickhouse-connect";
35 rev = "refs/tags/v${version}";
36 hash = "sha256-tdf9aYKAFpRyaqGGNxXs4bzmY6mdhKZ5toFBJRmD2VY=";
39 nativeBuildInputs = [ cython ];
40 setupPyBuildFlags = [ "--inplace" ];
41 enableParallelBuilding = true;
43 propagatedBuildInputs = [
52 nativeCheckInputs = [ pytestCheckHook pytest-dotenv ]
53 ++ passthru.optional-dependencies.sqlalchemy
54 ++ passthru.optional-dependencies.numpy;
56 # these tests require a running clickhouse instance
58 "tests/integration_tests"
62 pythonImportsCheck = [
64 "clickhouse_connect.driverc.buffer"
65 "clickhouse_connect.driverc.dataconv"
66 "clickhouse_connect.driverc.npconv"
70 optional-dependencies = {
71 sqlalchemy = [ sqlalchemy ];
80 description = "ClickHouse Database Core Driver for Python, Pandas, and Superset";
81 homepage = "https://github.com/ClickHouse/clickhouse-connect";
82 license = licenses.asl20;
83 maintainers = with maintainers; [ cpcloud ];