diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-06-07 10:26:51 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-06-07 14:28:49 +0200 |
commit | 433ca5a5c5657d63cd932b5ea10147b4374489ed (patch) | |
tree | ab7bc284f2b9cdac1d5f25e33f70c3445830a9ff /gnu | |
parent | 8504fad80cd4046c33068b89665d16aa697b12a1 (diff) | |
download | guix-433ca5a5c5657d63cd932b5ea10147b4374489ed.tar.gz guix-433ca5a5c5657d63cd932b5ea10147b4374489ed.zip |
gnu: Add python-clickhouse-connect.
* gnu/packages/python-xyz.scm (python-clickhouse-connect): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f528da3962..894c78296d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4397,6 +4397,58 @@ with sensible defaults out of the box.") clickgen is using @code{anicursorgen} and @code{xcursorgen} under the hood.") (license license:expat))) +(define-public python-clickhouse-connect + (package + (name "python-clickhouse-connect") + (version "0.6.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ClickHouse/clickhouse-connect") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1s0lk7xdq8f351cmpbp6jidqi5zdazrdba7w7fxph0w8sd74amry")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; All these tests require docker-compose + '(list "--ignore-glob=tests/integration_tests/*") + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'patch-pyproject + (lambda _ + ;; Our version of pytest is confused by this field. + (substitute* "pyproject.toml" + (("^env_files.*") "")))) + (add-before 'check 'build-extensions + (lambda _ + ;; Cython extensions have to be built before running the tests. + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (propagated-inputs + (list python-arrow + python-certifi + python-lz4 + python-numpy + python-orjson + python-pandas + python-pytz + python-sqlalchemy + python-urllib3 + python-zstandard)) + (native-inputs + (list python-cython + python-pytest)) + (home-page "https://github.com/ClickHouse/clickhouse-connect") + (synopsis + "ClickHouse database core driver for Python, Pandas, and Superset") + (description + "This package provides a high performance core database driver for +connecting ClickHouse to Python, Pandas, and Superset.") + (license license:asl2.0))) + (define-public python-cligj (package (name "python-cligj") |