17 buildPythonPackage rec {
18 pname = "clickhouse-driver";
21 # pypi source doesn't contain tests
22 src = fetchFromGitHub {
24 repo = "clickhouse-driver";
26 hash = "sha256-o5v37jPKmvUW4GFVD742nHSdO0g0z2FA4FkacbaRfNA=";
29 propagatedBuildInputs = [
47 substituteInPlace setup.py \
48 --replace "lz4<=3.0.1" "lz4<=4"
51 # remove source to prevent pytest testing source instead of the build artifacts
52 # (the source doesn't contain the extension modules)
54 rm -rf clickhouse_driver
57 # some test in test_buffered_reader.py doesn't seem to return
58 disabledTestPaths = [ "tests/test_buffered_reader.py" ];
60 # most tests require `clickhouse`
61 # TODO: enable tests after `clickhouse` unbroken
64 pythonImportsCheck = [ "clickhouse_driver" ];
67 description = "Python driver with native interface for ClickHouse";
68 homepage = "https://github.com/mymarilyn/clickhouse-driver";
69 license = licenses.mit;
70 maintainers = with maintainers; [ breakds ];