18 buildPythonPackage rec {
19 pname = "clickhouse-driver";
21 format = "setuptools";
23 # pypi source doesn't contain tests
24 src = fetchFromGitHub {
26 repo = "clickhouse-driver";
28 hash = "sha256-l0YHWY25PMHgZG/sAZjtGhwmcxWdA8k96zlm9hbKcek=";
36 propagatedBuildInputs = [
52 substituteInPlace setup.py \
53 --replace "lz4<=3.0.1" "lz4<=4"
56 # remove source to prevent pytest testing source instead of the build artifacts
57 # (the source doesn't contain the extension modules)
59 rm -rf clickhouse_driver
62 # some test in test_buffered_reader.py doesn't seem to return
63 disabledTestPaths = [ "tests/test_buffered_reader.py" ];
65 # most tests require `clickhouse`
66 # TODO: enable tests after `clickhouse` unbroken
69 pythonImportsCheck = [ "clickhouse_driver" ];
72 description = "Python driver with native interface for ClickHouse";
73 homepage = "https://github.com/mymarilyn/clickhouse-driver";
74 license = licenses.mit;
75 maintainers = with maintainers; [ breakds ];