summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-06 13:01:21 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-11 20:18:00 +0000
commit629df7b1e453e8872b6e42465f6c3a32aa348914 (patch)
treebc386afa19db0203ec65148c8510ace7071269e4 /gnu/packages/python-xyz.scm
parente69a9801965521fe9a2c1f7dca8704f9c9b2b9fb (diff)
gnu: python-duckdb: Move to duckdb.
* gnu/packages/python-xyz.scm (python-duckdb): Move from here ... * gnu/packages/duckdb.scm: ... to here. * gnu/packages/python-science.scm: Add (gnu packages duckdb). Change-Id: Ic8551cdd64f718e62a12576fbc1a38bf861d1644
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm62
1 files changed, 1 insertions, 61 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 198535bc0a1..0720018c92d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -217,6 +217,7 @@
#:use-module (gnu packages django)
#:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
+ #:use-module (gnu packages duckdb)
#:use-module (gnu packages elf)
#:use-module (gnu packages emulators)
#:use-module (gnu packages enchant)
@@ -23776,67 +23777,6 @@ runtime (rather than during a preprocessing step).")
Mustache templating language renderer.")
(license license:expat)))
-;; XXX: Try to inherit from duckdb and build from source with all extensions.
-(define-public python-duckdb
- (package
- (name "python-duckdb")
- (version "1.3.2")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "duckdb" version))
- (sha256
- (base32
- "1x8zb47y8lzc4w0g013sim8x9vd1h96ra3dd0bvh91y73f5dyn66"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:tests? #f ;FIXME: See <https://codeberg.org/guix/guix/issues/1436>.
- #:test-flags
- #~(list "--ignore=tests/slow/test_h2oai_arrow.py"
- ;; Do not relay on mypy.
- "--ignore=tests/stubs/test_stubs.py"
- "-k" (string-append
- ;; Don't install anything, thank you.
- "not test_install_non_existent_extension"
- ;; _pybind11_conduit_v1_ not found.
- " and not test_wrap_coverage"
- ;; See <https://github.com/duckdb/duckdb/issues/11961>.
- " and not test_fetchmany"
- ;; See <https://github.com/duckdb/duckdb/issues/10702>.
- " and not test_connection_interrupt"
- " and not test_query_interruption"))
- #:phases
- #~(modify-phases %standard-phases
- ;; Tests need this
- (add-before 'check 'set-HOME
- (lambda _ (setenv "HOME" "/tmp")))
- ;; Later versions of pybind replace "_" with "const_name".
- (add-after 'unpack 'pybind-compatibility
- (lambda _
- (with-directory-excursion "src/include/duckdb_python"
- (substitute* '("python_objects.hpp"
- "pyfilesystem.hpp"
- "pybind11/conversions/pyconnection_default.hpp")
- (("const_name") "_"))))))))
- (propagated-inputs
- (list python-adbc-driver-manager))
- (native-inputs
- (list pybind11
- python-fsspec
- ;; python-google-cloud-storage ;python-grpcio fails (see: guix/guix#1436)
- python-numpy
- python-pandas
- python-psutil
- ;; python-pytest
- python-setuptools-scm
- python-setuptools
- python-wheel))
- (home-page "https://www.duckdb.org")
- (synopsis "DuckDB embedded database")
- (description "DuckDB is an in-process SQL OLAP database management
-system.")
- (license license:expat)))
-
(define-public python-dulwich
(package
(name "python-dulwich")