summaryrefslogtreecommitdiff
path: root/gnu/packages/duckdb.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-06 13:35:15 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-11 20:18:00 +0000
commit1bf145eee314d9ca6c1908cf22687edb8a517553 (patch)
treeaedde275ce02a8596fb05747465b36115fdbc4a1 /gnu/packages/duckdb.scm
parent629df7b1e453e8872b6e42465f6c3a32aa348914 (diff)
gnu: r-duckdb: Move to duckdb.
* gnu/packages/cran.scm (r-duckdb): Move from here ... * gnu/packages/duckdb.scm: ... to here. Change-Id: Ic735854106fd0b0e693105183b7408d447de882c
Diffstat (limited to 'gnu/packages/duckdb.scm')
-rw-r--r--gnu/packages/duckdb.scm53
1 files changed, 52 insertions, 1 deletions
diff --git a/gnu/packages/duckdb.scm b/gnu/packages/duckdb.scm
index de7c4e160e0..872f927c2e9 100644
--- a/gnu/packages/duckdb.scm
+++ b/gnu/packages/duckdb.scm
@@ -26,16 +26,20 @@
26 #:use-module (guix build-system cmake) 26 #:use-module (guix build-system cmake)
27 #:use-module (guix build-system pyproject) 27 #:use-module (guix build-system pyproject)
28 #:use-module ((guix build-system python) #:select (pypi-uri)) 28 #:use-module ((guix build-system python) #:select (pypi-uri))
29 #:use-module (guix build-system r)
29 #:use-module (guix download) 30 #:use-module (guix download)
30 #:use-module (guix gexp) 31 #:use-module (guix gexp)
31 #:use-module (guix git-download) 32 #:use-module (guix git-download)
32 #:use-module (guix packages) 33 #:use-module (guix packages)
33 #:use-module (guix utils) 34 #:use-module (guix utils)
34 #:use-module (gnu packages) 35 #:use-module (gnu packages)
36 #:use-module (gnu packages base)
37 #:use-module (gnu packages cran)
35 #:use-module (gnu packages databases) 38 #:use-module (gnu packages databases)
36 #:use-module (gnu packages python-build) 39 #:use-module (gnu packages python-build)
37 #:use-module (gnu packages python-science) 40 #:use-module (gnu packages python-science)
38 #:use-module (gnu packages python-xyz)) 41 #:use-module (gnu packages python-xyz)
42 #:use-module (gnu packages statistics))
39 43
40;;; Commentary: 44;;; Commentary:
41;;; 45;;;
@@ -141,6 +145,53 @@ single-file databases with support for secondary indexes.")
141system.") 145system.")
142 (license license:expat))) 146 (license license:expat)))
143 147
148(define-public r-duckdb
149 (package
150 (name "r-duckdb")
151 (version "1.2.2")
152 (source
153 (origin
154 (method url-fetch)
155 (uri (cran-uri "duckdb" version))
156 (sha256
157 (base32 "161zxianyssvsrd2345v4bi1m2z7wj614z8343jb73vhlk6s9yyi"))
158 ;; This package bundles the duckdb sources and builds a custom variant
159 ;; of duckdb. I'd be happy to link it with our duckdb library instead,
160 ;; but it does not seem possible to do that.
161 #;
162 (snippet
163 '(delete-file "src/duckdb.tar.xz"))))
164 (properties
165 '((upstream-name . "duckdb")
166 (updater-extra-native-inputs . ("tzdata-for-tests"))
167 ;; We don't seem to need this and I don't want to package it now.
168 (updater-ignored-native-inputs . ("r-dblog"))))
169 (build-system r-build-system)
170 (arguments (list #:tests? #false)) ;tests can time out on the build farm
171 (propagated-inputs (list r-dbi))
172 (native-inputs (list r-adbcdrivermanager
173 r-arrow
174 r-bit64
175 r-callr
176 r-clock
177 r-dbitest
178 r-dbplyr
179 r-dplyr
180 r-remotes
181 r-rlang
182 r-testthat
183 r-tibble
184 r-vctrs
185 r-withr
186 tzdata-for-tests))
187 (home-page "https://r.duckdb.org/")
188 (synopsis "DBI package for the DuckDB database management system")
189 (description
190 "The DuckDB project is an embedded analytical data management system with
191support for the Structured Query Language (SQL). This package includes all of
192DuckDB and an R Database Interface (DBI) connector.")
193 (license license:expat)))
194
144;;; 195;;;
145;;; Avoid adding new packages to the end of this file. To reduce the chances 196;;; Avoid adding new packages to the end of this file. To reduce the chances
146;;; of a merge conflict, place them above in alphabetic order. 197;;; of a merge conflict, place them above in alphabetic order.