gnu: MariaDB: Update to 10.5.8.
[jackhill/guix/guix.git] / gnu / packages / databases.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2013, 2017 Cyril Roelandt <tipecaml@gmail.com>
5 ;;; Copyright © 2014, 2016 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2014, 2015 Eric Bavier <bavier@member.fsf.org>
8 ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
9 ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
11 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
14 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
15 ;;; Copyright © 2016, 2017, 2018 Roel Janssen <roel@gnu.org>
16 ;;; Copyright © 2016 David Craven <david@craven.ch>
17 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
18 ;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
19 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
21 ;;; Copyright © 2017, 2018 Julien Lepiller <julien@lepiller.eu>
22 ;;; Copyright © 2017, 2020 Thomas Danckaert <post@thomasdanckaert.be>
23 ;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org>
24 ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
25 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
26 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
27 ;;; Copyright © 2017, 2018 Alex Vong <alexvong1995@gmail.com>
28 ;;; Copyright © 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
29 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
30 ;;; Copyright © 2017, 2018 Pierre Langlois <pierre.langlois@gmx.com>
31 ;;; Copyright © 2015, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
32 ;;; Copyright © 2017 Kristofer Buffington <kristoferbuffington@gmail.com>
33 ;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net>
34 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
35 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
36 ;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
37 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
38 ;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
39 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
40 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
41 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
42 ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
43 ;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
44 ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
45 ;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
46 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
47 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
48 ;;;
49 ;;; This file is part of GNU Guix.
50 ;;;
51 ;;; GNU Guix is free software; you can redistribute it and/or modify it
52 ;;; under the terms of the GNU General Public License as published by
53 ;;; the Free Software Foundation; either version 3 of the License, or (at
54 ;;; your option) any later version.
55 ;;;
56 ;;; GNU Guix is distributed in the hope that it will be useful, but
57 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
58 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59 ;;; GNU General Public License for more details.
60 ;;;
61 ;;; You should have received a copy of the GNU General Public License
62 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
63
64 (define-module (gnu packages databases)
65 #:use-module (gnu packages)
66 #:use-module (gnu packages admin)
67 #:use-module (gnu packages algebra)
68 #:use-module (gnu packages autotools)
69 #:use-module (gnu packages avahi)
70 #:use-module (gnu packages base)
71 #:use-module (gnu packages bash)
72 #:use-module (gnu packages bison)
73 #:use-module (gnu packages boost)
74 #:use-module (gnu packages check)
75 #:use-module (gnu packages cmake)
76 #:use-module (gnu packages compression)
77 #:use-module (gnu packages crypto)
78 #:use-module (gnu packages curl)
79 #:use-module (gnu packages cyrus-sasl)
80 #:use-module (gnu packages dbm)
81 #:use-module (gnu packages emacs)
82 #:use-module (gnu packages flex)
83 #:use-module (gnu packages gcc)
84 #:use-module (gnu packages gettext)
85 #:use-module (gnu packages glib)
86 #:use-module (gnu packages gnupg)
87 #:use-module (gnu packages guile)
88 #:use-module (gnu packages time)
89 #:use-module (gnu packages golang)
90 #:use-module (gnu packages icu4c)
91 #:use-module (gnu packages jemalloc)
92 #:use-module (gnu packages language)
93 #:use-module (gnu packages libedit)
94 #:use-module (gnu packages libevent)
95 #:use-module (gnu packages linux)
96 #:use-module (gnu packages logging)
97 #:use-module (gnu packages man)
98 #:use-module (gnu packages maths)
99 #:use-module (gnu packages multiprecision)
100 #:use-module (gnu packages ncurses)
101 #:use-module (gnu packages onc-rpc)
102 #:use-module (gnu packages parallel)
103 #:use-module (gnu packages pcre)
104 #:use-module (gnu packages perl)
105 #:use-module (gnu packages perl-check)
106 #:use-module (gnu packages perl-web)
107 #:use-module (gnu packages pkg-config)
108 #:use-module (gnu packages popt)
109 #:use-module (gnu packages protobuf)
110 #:use-module (gnu packages python)
111 #:use-module (gnu packages python-crypto)
112 #:use-module (gnu packages python-web)
113 #:use-module (gnu packages python-science)
114 #:use-module (gnu packages python-xyz)
115 #:use-module (gnu packages rdf)
116 #:use-module (gnu packages readline)
117 #:use-module (gnu packages regex)
118 #:use-module (gnu packages rpc)
119 #:use-module (gnu packages ruby)
120 #:use-module (gnu packages serialization)
121 #:use-module (gnu packages sphinx)
122 #:use-module (gnu packages sqlite)
123 #:use-module (gnu packages tcl)
124 #:use-module (gnu packages terminals)
125 #:use-module (gnu packages textutils)
126 #:use-module (gnu packages tls)
127 #:use-module (gnu packages valgrind)
128 #:use-module (gnu packages web)
129 #:use-module (gnu packages xml)
130 #:use-module ((guix licenses) #:prefix license:)
131 #:use-module (guix packages)
132 #:use-module (guix download)
133 #:use-module (guix bzr-download)
134 #:use-module (guix git-download)
135 #:use-module (guix hg-download)
136 #:use-module (guix build-system emacs)
137 #:use-module (guix build-system gnu)
138 #:use-module (guix build-system go)
139 #:use-module (guix build-system perl)
140 #:use-module (guix build-system python)
141 #:use-module (guix build-system ruby)
142 #:use-module (guix build-system cmake)
143 #:use-module (guix build-system scons)
144 #:use-module (guix build-system trivial)
145 #:use-module (guix utils)
146 #:use-module (srfi srfi-1)
147 #:use-module (srfi srfi-26)
148 #:use-module (ice-9 match))
149
150 (define-public 4store
151 (package
152 (name "4store")
153 (version "1.1.6")
154 (source (origin
155 (method git-fetch)
156 (uri (git-reference
157 (url "https://github.com/4store/4store")
158 (commit (string-append "v" version))))
159 (file-name (git-file-name name version))
160 (sha256
161 (base32 "1kzdfmwpzy64cgqlkcz5v4klwx99w0jk7afckyf7yqbqb4rydmpk"))
162 (patches (search-patches "4store-unset-preprocessor-directive.patch"
163 "4store-fix-buildsystem.patch"))))
164 (build-system gnu-build-system)
165 (native-inputs
166 `(("perl" ,perl)
167 ("python" ,python-2)
168 ("autoconf" ,autoconf)
169 ("automake" ,automake)
170 ("gettext" ,gettext-minimal)
171 ("libtool" ,libtool)
172 ("pcre" ,pcre "bin") ;for 'pcre-config'
173 ("pkg-config" ,pkg-config)))
174 (inputs
175 `(("glib" ,glib)
176 ("rasqal" ,rasqal)
177 ("libxml2" ,libxml2)
178 ("raptor2" ,raptor2)
179 ("readline" ,readline)
180 ("avahi" ,avahi)
181 ("cyrus-sasl" ,cyrus-sasl)
182 ("openssl" ,openssl)
183 ("util-linux" ,util-linux "lib")))
184 ;; http://www.4store.org has been down for a while now.
185 (home-page "https://github.com/4store/4store")
186 (synopsis "Clustered RDF storage and query engine")
187 (description "4store is a RDF/SPARQL store written in C, supporting
188 either single machines or networked clusters.")
189 (license license:gpl3+)))
190
191 (define-public go-gopkg.in-mgo.v2
192 (package
193 (name "go-gopkg.in-mgo.v2")
194 (version "2016.08.01")
195 (source (origin
196 (method git-fetch)
197 (uri (git-reference
198 (url "https://github.com/go-mgo/mgo")
199 (commit (string-append "r" version))))
200 (file-name (git-file-name name version))
201 (sha256
202 (base32
203 "0rwbi1z63w43b0z9srm8m7iz1fdwx7bq7n2mz862d6liiaqa59jd"))))
204 (build-system go-build-system)
205 (arguments
206 `(#:import-path "gopkg.in/mgo.v2"
207 ;; TODO: The tests fail as MongoDB fails to start
208 ;; Error parsing command line: unrecognised option '--chunkSize'
209 #:tests? #f
210 #:phases
211 (modify-phases %standard-phases
212 (delete 'reset-gzip-timestamps)
213 (add-before 'check 'start-mongodb
214 (lambda* (#:key tests? #:allow-other-keys)
215 (when tests?
216 (with-directory-excursion "src/gopkg.in/mgo.v2"
217 (invoke "make" "startdb")))
218 #t))
219 (add-after 'check 'stop'mongodb
220 (lambda* (#:key tests? #:allow-other-keys)
221 (when tests?
222 (with-directory-excursion "src/gopkg.in/mgo.v2"
223 (invoke "make" "stopdb")))
224 #t)))))
225 (native-inputs
226 `(("go-gopkg.in-check.v1" ,go-gopkg.in-check.v1)
227 ("mongodb" ,mongodb)
228 ("daemontools" ,daemontools)))
229 (synopsis "@code{mgo} offers a rich MongoDB driver for Go.")
230 (description
231 "@code{mgo} (pronounced as mango) is a MongoDB driver for the Go language.
232 It implements a rich selection of features under a simple API following
233 standard Go idioms.")
234 (home-page "https://labix.org/mgo")
235 (license license:bsd-2)))
236
237 (define-public ephemeralpg
238 (package
239 (name "ephemeralpg")
240 (version "3.1")
241 (source
242 (origin
243 (method url-fetch)
244 (uri (string-append
245 "https://eradman.com/ephemeralpg/code/ephemeralpg-"
246 version ".tar.gz"))
247 (sha256
248 (base32 "1ap22ki8yz6agd0qybcjgs4b9izw1rwwcgpxn3jah2ccfyax34s6"))))
249 (build-system gnu-build-system)
250 (arguments
251 `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
252 (string-append "PREFIX=" %output))
253 #:phases
254 (modify-phases %standard-phases
255 (delete 'configure) ; no configure script
256 (add-after 'install 'wrap
257 (lambda* (#:key inputs outputs #:allow-other-keys)
258 (let ((out (assoc-ref outputs "out")))
259 (wrap-program (string-append out "/bin/pg_tmp")
260 `("PATH" ":" prefix
261 (,(string-append (assoc-ref inputs "util-linux")
262 "/bin")
263 ,(string-append (assoc-ref inputs "postgresql")
264 "/bin")
265 ;; For getsocket.
266 ,(string-append out "/bin")))))
267 #t)))
268 #:test-target "test"))
269 (inputs
270 `(("postgresql" ,postgresql)
271 ("util-linux" ,util-linux)))
272 (native-inputs
273 ;; For tests.
274 `(("ruby" ,ruby)
275 ("which" ,which)))
276 (home-page "https://eradman.com/ephemeralpg/")
277 (synopsis "Run temporary PostgreSQL databases")
278 (description
279 "@code{pg_tmp} creates temporary PostgreSQL databases, suitable for tasks
280 like running software test suites. Temporary databases created with
281 @code{pg_tmp} have a limited shared memory footprint and are automatically
282 garbage-collected after a configurable number of seconds (the default is
283 60).")
284 (license license:isc)))
285
286 (define-public es-dump-restore
287 (package
288 (name "es-dump-restore")
289 (version "2.1.0")
290 (source
291 (origin
292 (method url-fetch)
293 (uri (rubygems-uri "es_dump_restore" version))
294 (sha256
295 (base32
296 "020yk7f1hw48clmf5501z3xv9shsdchyymcv0y2cci2c1xvr1mim"))))
297 (build-system ruby-build-system)
298 (arguments
299 '(#:tests? #f)) ;; No testsuite.
300 (propagated-inputs
301 `(("ruby-httpclient" ,ruby-httpclient)
302 ("ruby-multi-json" ,ruby-multi-json)
303 ("ruby-progress_bar" ,ruby-progress_bar)
304 ("ruby-rubyzip" ,ruby-rubyzip)
305 ("ruby-thor" ,ruby-thor)))
306 (synopsis "Utility for dumping and restoring ElasticSearch indexes")
307 (description
308 "This package provides a utility for dumping the contents of an
309 ElasticSearch index to a compressed file and restoring the dumpfile back to an
310 ElasticSearch server")
311 (home-page "https://github.com/patientslikeme/es_dump_restore")
312 (license license:expat)))
313
314 (define-public firebird
315 (package
316 (name "firebird")
317 (version "3.0.7")
318 (source
319 (let ((revision "33374-0"))
320 (origin
321 (method url-fetch)
322 (uri (string-append "https://github.com/FirebirdSQL/"
323 "firebird/releases/download/R"
324 (string-replace-substring version "." "_") "/"
325 "Firebird-" version "." revision ".tar.bz2"))
326 (sha256
327 (base32 "0xpy1bncz36c6n28y7kllm1dkrdkn4vb4gw2n43f2351mznmrf5c"))
328 (modules '((guix build utils)))
329 (snippet
330 `(begin
331 (for-each
332 delete-file-recursively
333 (list "extern/btyacc/test" ; TODO: package and remove entirely
334 "extern/editline"
335 "extern/icu"
336 "extern/libtommath"
337 "extern/zlib"
338 "src/include/firebird/impl/boost"
339
340 ;; Missing licence.
341 "builds/install/arch-specific/solaris"
342 "extern/SfIO"
343 "src/msgs/templates.sql"
344
345 ;; Generated files missing sources.
346 "doc/Firebird-3-QuickStart.pdf"
347 (string-append "doc/Firebird-" ,version
348 "-ReleaseNotes.pdf")
349 "doc/README.SecureRemotePassword.html"))
350 #t)))))
351 (build-system gnu-build-system)
352 (outputs (list "debug" "out"))
353 (arguments
354 `(#:configure-flags
355 (let ((out (assoc-ref %outputs "out")))
356 (list (string-append "--with-fbsbin=" out "/sbin")
357 (string-append "--with-fbdoc=" out "/share/doc/"
358 ,name "-" ,version)
359 (string-append "--with-fbconf=" out "/lib/firebird")
360 (string-append "--with-fbintl=" out "/lib/firebird/intl")
361 (string-append "--with-fbmisc=" out "/lib/firebird/misc")
362 (string-append "--with-fbmsg=" out "/lib/firebird")
363 (string-append "--with-fbplugins=" out "/lib/firebird/plugins")
364 (string-append "--with-fbudf=" out "/lib/firebird/UDF")
365 "--with-fbglock=/run/firebird"
366 "--with-fblog=/var/log/firebird"
367 "--with-fbhelp=/var/lib/firebird/system"
368 "--with-fbsecure-db=/var/lib/firebird/secure"
369 "--without-fbsample"
370 "--without-fbsample-db"
371 "--with-system-editline"))
372 #:make-flags
373 (list (string-append "CC=" ,(cc-for-target))
374 ;; The plugins/ can't find libfbclient otherwise.
375 (string-append "LDFLAGS=-Wl,-rpath="
376 (assoc-ref %outputs "out") "/lib"))
377 #:tests? #f ; no test suite
378 #:modules ((guix build gnu-build-system)
379 (guix build utils)
380 (srfi srfi-26))
381 #:phases
382 (modify-phases %standard-phases
383 (add-after 'unpack 'use-system-boost
384 (lambda _
385 (substitute* "src/include/firebird/Message.h"
386 (("\"\\./impl/boost/preprocessor/seq/for_each_i\\.hpp\"")
387 "<boost/preprocessor/seq/for_each_i.hpp>")
388 (("FB_BOOST_") "BOOST_"))
389 #t))
390 (add-after 'unpack 'patch-installation
391 (lambda _
392 (substitute*
393 "builds/install/arch-specific/linux/makeInstallImage.sh.in"
394 (("/bin/sh") (which "bash"))
395 ;; Remove shell script helpers from $PATH.
396 (("(addLibs|cp) .*\\.sh .*@FB_SBINDIR@") ":")
397 ;; Put files where Guix users expect them.
398 (("(License\\.txt.*)@FB_CONFDIR" match)
399 (string-append match "@FB_DOCDIR@"))
400 (("@FB_CONFDIR@(.*License\\.txt.*)" match)
401 (string-append "@FB_DOCDIR@" match))
402 (("(cp .*/doc/.*)@FB_CONFDIR@(.*)" _ head tail)
403 (string-append head "@FB_DOCDIR@" tail "\n")))
404 (substitute*
405 (list "builds/install/posix-common/changeServerMode.sh.in"
406 "builds/install/posix-common/install.sh.in")
407 ;; Skip phases that (could) cause problems in Guix.
408 (("check(InstallUser|IfServerRunning|Libraries)|addFirebirdUser")
409 ":")
410 ;; Skip phases that are merely pointless on Guix.
411 (("buildUninstallFile|installInitdScript|startFirebird") ":")
412 ;; Omit randomly generated password with bonus timestamp.
413 (("setDBAPassword") ":"))
414
415 ;; These promote proprietary workflows not relevant on Guix.
416 (for-each delete-file-recursively
417 (find-files "doc" "README\\.(build\\.msvc|NT|Win)"))
418 #t))
419 (add-after 'configure 'delete-init-scripts
420 (lambda _
421 (delete-file-recursively "gen/install/misc")
422 #t))
423 (add-before 'build 'set-build-environment-variables
424 (lambda _
425 ;; ‘isql’ needs to run & find libfbclient.so during the build.
426 ;; This doubles as a rudimentary test in lieu of a test suite.
427 (setenv "LD_LIBRARY_PATH"
428 (string-append (assoc-ref %build-inputs "icu4c") "/lib"))
429 #t))
430 (add-before 'install 'keep-embedded-debug-symbols
431 (lambda _
432 ;; Let the gnu-build-system separate & deal with them later.
433 ;; XXX Upstream would use ‘--strip-unneeded’, shaving a whole
434 ;; megabyte off Guix's 7.7M libEngine12.so, for example.
435 (substitute* "gen/Makefile.install"
436 (("readelf") "false"))
437 #t))
438 (add-after 'install 'prune-undesirable-files
439 (lambda* (#:key outputs #:allow-other-keys)
440 (let ((out (assoc-ref outputs "out")))
441 (with-directory-excursion out
442 ;; Remove example binaries.
443 (for-each delete-file-recursively
444 (find-files "." "example"))
445 ;; Delete (now-)empty directories.
446 (for-each rmdir
447 (list "include/firebird/impl"
448 "lib/firebird/plugins/udr"))
449 #t)))))))
450 (inputs
451 `(("boost" ,boost)
452 ("editline" ,editline)
453 ("icu4c" ,icu4c-67)
454 ("libtommath" ,libtommath)
455 ("ncurses" ,ncurses)
456 ("zlib" ,zlib)))
457 (home-page "https://www.firebirdsql.org")
458 (synopsis "Relational database with many ANSI SQL standard features")
459 (description
460 "Firebird is an SQL @acronym{RDBMS, relational database management system}
461 with rich support for ANSI SQL (e.g., @code{INSERT...RETURNING}) including
462 @acronym{UDFs, user-defined functions} and PSQL stored procedures, cursors, and
463 triggers. Transactions provide full ACID-compliant referential integrity.
464
465 The database requires very little manual maintenance once set up, making it
466 ideal for small business or embedded use.
467
468 When installed as a traditional local or remote (network) database server,
469 Firebird can grow to terabyte scale with proper tuning---although PostgreSQL
470 may be a better choice for such very large environments.
471
472 Firebird can also be embedded into stand-alone applications that don't want or
473 need a full client & server. Used in this manner, it offers richer SQL support
474 than SQLite as well as the option to seamlessly migrate to a client/server
475 database later.")
476 (properties
477 `((lint-hidden-cve . ("CVE-2017-6369"))))
478 (license
479 ;; See doc/license/README.license.usage.txt for rationale & details.
480 (list license:bsd-3 ; src/common/sha2/
481 license:bsd-4 ; src/common/enc.cpp
482 license:gpl2+ ; builds/posix/make.defaults
483 (license:non-copyleft "file:///builds/install/misc/IPLicense.txt"
484 "InterBase Public License v1.0")
485 (license:non-copyleft "file:///builds/install/misc/IDPLicense.txt"
486 "Initial Developer's Public License v1.0")
487 license:lgpl2.1 ; exception for OSI-compatible licences
488 license:mpl1.1 ; examples/interfaces/0{6,8}*.cpp
489 license:public-domain)))) ; including files without explicit licence
490
491 (define-public leveldb
492 (package
493 (name "leveldb")
494 (version "1.22")
495 (source (origin
496 (method git-fetch)
497 (uri (git-reference
498 (url "https://github.com/google/leveldb")
499 (commit version)))
500 (file-name (git-file-name name version))
501 (sha256
502 (base32
503 "0qrnhiyq7r4wa1a4wi82zgns35smj94mcjsc7kfs1k6ia9ys79z7"))))
504 (build-system cmake-build-system)
505 (arguments
506 `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" "-DLEVELDB_BUILD_TESTS=ON")))
507 (inputs
508 `(("snappy" ,snappy)))
509 (home-page "https://github.com/google/leveldb")
510 (synopsis "Fast key-value storage library")
511 (description
512 "LevelDB is a fast key-value storage library that provides an ordered
513 mapping from string keys to string values.")
514 (license license:bsd-3)))
515
516 (define-public memcached
517 (package
518 (name "memcached")
519 (version "1.5.20")
520 (source
521 (origin
522 (method url-fetch)
523 (uri (string-append
524 "https://memcached.org/files/memcached-" version ".tar.gz"))
525 (sha256
526 (base32 "1r511qr95q0ywdaql3pdjiwzkfqxhhfzb13ilvl7mznfm4iv1myg"))))
527 (build-system gnu-build-system)
528 (inputs
529 `(("libevent" ,libevent)
530 ("cyrus-sasl" ,cyrus-sasl)))
531 (home-page "https://memcached.org/")
532 (synopsis "In-memory caching service")
533 (description "Memcached is an in-memory key-value store. It has a small
534 and generic API, and was originally intended for use with dynamic web
535 applications.")
536 (license license:bsd-3)))
537
538 (define-public libmemcached
539 (package
540 (name "libmemcached")
541 (version "1.0.18")
542 ;; We build from the sources since we want to build the extra HTML
543 ;; documentation which is not included with the release.
544 (source (origin
545 (method bzr-fetch)
546 (uri (bzr-reference
547 (url "lp:libmemcached/1.0")
548 (revision (string-append "tag:" version))))
549 (file-name (string-append name "-" version "-checkout"))
550 (sha256
551 (base32
552 "1842s4dxdh21gdr46q4dgxigidcs6dkqnbnqjwb9l8r0bqx5nb10"))
553 (patches
554 (search-patches "libmemcached-build-with-gcc7.patch"))))
555 (build-system gnu-build-system)
556 (native-inputs
557 `(("memcached" ,memcached)
558 ("libtool" ,libtool)
559 ("autoconf" ,autoconf)
560 ("automake" ,automake)
561 ("bison" ,bison)
562 ("flex" ,flex)
563 ("perl" ,perl)
564 ("python-sphinx" ,python-sphinx))) ;to build the HTML doc.
565 (inputs
566 `(("libevent" ,libevent)
567 ("cyrus-sasl" ,cyrus-sasl)))
568 (outputs '("out" "doc"))
569 (arguments
570 '(#:phases
571 (modify-phases %standard-phases
572 (add-before 'bootstrap 'fix-configure.ac
573 ;; Move the AC_CONFIG_AUX_DIR macro use under AC_INIT, otherwise we
574 ;; get the error ``configure: error: cannot find install-sh,
575 ;; install.sh, or shtool in "." "./.." "./../.."`` (see:
576 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19539 and
577 ;; https://bugs.launchpad.net/libmemcached/+bug/1803922).
578 (lambda _
579 (delete-file "bootstrap.sh") ;not useful in the context of Guix
580 (substitute* "configure.ac"
581 (("^AC_CONFIG_AUX_DIR\\(\\[build-aux\\]\\).*") "")
582 (("(^AC_INIT.*)" anchor)
583 (string-append anchor "AC_CONFIG_AUX_DIR([build-aux])\n")))
584 #t))
585 (add-before 'bootstrap 'disable-failing-tests
586 ;; See: https://bugs.launchpad.net/libmemcached/+bug/1803926
587 (lambda _
588 ;; Mark some heavily failing test suites as expected to fail.
589 (substitute* "Makefile.am"
590 (("(XFAIL_TESTS =[^\n]*)" xfail_tests)
591 (string-append xfail_tests " tests/testudp"
592 " tests/libmemcached-1.0/testapp"
593 " tests/libmemcached-1.0/testsocket")))
594 ;; Disable two tests of the unittest test suite.
595 (substitute* "libtest/unittest.cc"
596 ((".*echo_fubar_BINARY \\},.*") "")
597 ((".*application_doesnotexist_BINARY \\},.*") ""))
598 #t))
599 (add-after 'disable-dns-tests 'build-and-install-html-doc
600 (lambda* (#:key outputs #:allow-other-keys)
601 (let ((html (string-append (assoc-ref outputs "doc")
602 "/share/doc/libmemcached/html/")))
603 (invoke "make" "install-html")
604 ;; Cleanup useless files.
605 (for-each delete-file-recursively
606 (map (lambda (x) (string-append html x))
607 '("_sources" ".doctrees" ".buildinfo"))))
608 #t)))))
609 (home-page "https://libmemcached.org/")
610 (synopsis "C++ library for memcached")
611 (description "libMemcached is a library to use memcached in C/C++
612 applications. It comes with a complete reference guide and documentation of
613 the API, and provides features such as:
614 @itemize
615 @item Asynchronous and synchronous transport support
616 @item Consistent hashing and distribution
617 @item Tunable hashing algorithm to match keys
618 @item Access to large object support
619 @item Local replication
620 @end itemize")
621 (license license:bsd-3)))
622
623 (define-public python-pylibmc
624 (package
625 (name "python-pylibmc")
626 (version "1.6.1")
627 (source
628 (origin
629 (method url-fetch)
630 (uri (pypi-uri "pylibmc" version))
631 (sha256
632 (base32 "1sg7d9j0v6g3xg3finf4l1hb72c13vcyyi6rqrc9shbx903d93ca"))))
633 (build-system python-build-system)
634 (arguments
635 '(#:phases
636 (modify-phases %standard-phases
637 (add-before 'check 'start-memcached-daemon
638 ;; The test suite requires a memcached server.
639 (lambda _
640 (invoke "memcached" "-d"))))))
641 (native-inputs
642 `(("memcached" ,memcached)
643 ("python-nose" ,python-nose)))
644 (inputs
645 `(("libmemcached" ,libmemcached)
646 ("zlib" ,zlib)
647 ("cyrus-sasl" ,cyrus-sasl)))
648 (home-page "http://sendapatch.se/projects/pylibmc/")
649 (synopsis "Python client for memcached")
650 (description
651 "@code{pylibmc} is a client in Python for memcached. It is a wrapper
652 around TangentOrg’s libmemcached library, and can be used as a drop-in
653 replacement for the code@{python-memcached} library.")
654 (license license:bsd-3)))
655
656 (define-public python2-pylibmc
657 (package-with-python2 python-pylibmc))
658
659 (define-public mongodb
660 (package
661 (name "mongodb")
662 (version "3.4.10")
663 (source (origin
664 (method url-fetch)
665 (uri (string-append "https://github.com/mongodb/mongo/archive/r"
666 version ".tar.gz"))
667 (file-name (string-append name "-" version ".tar.gz"))
668 (sha256
669 (base32 "0676lvkljj7a5hdhv78dbykqnqrj9lbn9799mi84b8vbnzsq961r"))
670 (modules '((guix build utils)))
671 (snippet
672 '(begin
673 (for-each (lambda (dir)
674 (delete-file-recursively
675 (string-append "src/third_party/" dir)))
676 '("pcre-8.41" "scons-2.5.0" "snappy-1.1.3"
677 "valgrind-3.11.0" "wiredtiger"
678 "yaml-cpp-0.5.3" "zlib-1.2.8"))
679 #t))
680 (patches
681 (list
682 (search-patch "mongodb-support-unknown-linux-distributions.patch")))))
683 (build-system scons-build-system)
684 (inputs
685 `(("openssl" ,openssl-1.0)
686 ("pcre" ,pcre)
687 ,@(match (%current-system)
688 ((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
689 `(("wiredtiger" ,wiredtiger)))
690 (_ `()))
691 ("yaml-cpp" ,yaml-cpp)
692 ("zlib" ,zlib)
693 ("snappy" ,snappy)))
694 (native-inputs
695 `(("valgrind" ,valgrind)
696 ("perl" ,perl)
697 ("python" ,python-2)
698 ("python2-pymongo" ,python2-pymongo)
699 ("python2-pyyaml" ,python2-pyyaml)
700 ("tzdata" ,tzdata-for-tests)))
701 (arguments
702 `(#:scons ,scons-python2
703 #:phases
704 (let ((common-options
705 `(;; "--use-system-tcmalloc" TODO: Missing gperftools
706 "--use-system-pcre"
707 ;; wiredtiger is 64-bit only
708 ,,(if (any (cute string-prefix? <> (or (%current-target-system)
709 (%current-system)))
710 '("i686-linux" "armhf-linux"))
711 ``"--wiredtiger=off"
712 ``"--use-system-wiredtiger")
713 ;; TODO
714 ;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1
715 ;; --use-system-boost
716 "--use-system-snappy"
717 "--use-system-zlib"
718 "--use-system-valgrind"
719 ;; "--use-system-stemmer" TODO: Missing relevant package
720 "--use-system-yaml"
721 "--disable-warnings-as-errors"
722 ,(format #f "--jobs=~a" (parallel-job-count))
723 "--ssl")))
724 (modify-phases %standard-phases
725 (add-after 'unpack 'patch
726 (lambda _
727 ;; Remove use of GNU extensions in parse_number_test.cpp, to
728 ;; allow compiling with GCC 7 or later
729 ;; https://jira.mongodb.org/browse/SERVER-28063
730 (substitute* "src/mongo/base/parse_number_test.cpp"
731 (("0xabcab\\.defdefP-10")
732 "687.16784283419838"))
733 #t))
734 (add-after 'unpack 'scons-propagate-environment
735 (lambda _
736 ;; Modify the SConstruct file to arrange for
737 ;; environment variables to be propagated.
738 (substitute* "SConstruct"
739 (("^env = Environment\\(")
740 "env = Environment(ENV=os.environ, "))
741 #t))
742 (add-after 'unpack 'create-version-file
743 (lambda _
744 (call-with-output-file "version.json"
745 (lambda (port)
746 (display ,(simple-format #f "{
747 \"version\": \"~A\"
748 }" version) port)))
749 #t))
750 (replace 'build
751 (lambda _
752 (apply invoke `("scons"
753 ,@common-options
754 "mongod" "mongo" "mongos"))))
755 (replace 'check
756 (lambda* (#:key tests? inputs #:allow-other-keys)
757 (setenv "TZDIR"
758 (string-append (assoc-ref inputs "tzdata")
759 "/share/zoneinfo"))
760 (when tests?
761 ;; Note that with the tests, especially the unittests, the
762 ;; build can take up to ~45GB of space, as many tests are
763 ;; individual executable files, with some being hundreds of
764 ;; megabytes in size.
765 (apply invoke `("scons" ,@common-options "dbtest" "unittests"))
766 (substitute* "build/unittests.txt"
767 ;; TODO: Don't run the async_stream_test, as it hangs
768 (("^build\\/opt\\/mongo\\/executor\\/async\\_stream\\_test\n$")
769 "")
770 ;; TODO: This test fails
771 ;; Expected 0UL != disks.size() (0 != 0) @src/mongo/util/procparser_test.cpp:476
772 (("^build\\/opt\\/mongo\\/util\\/procparser\\_test\n$")
773 ""))
774 (invoke "python" "buildscripts/resmoke.py"
775 "--suites=dbtest,unittests"
776 (format #f "--jobs=~a" (parallel-job-count))))
777 #t))
778 (replace 'install
779 (lambda* (#:key outputs #:allow-other-keys)
780 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
781 (install-file "mongod" bin)
782 (install-file "mongos" bin)
783 (install-file "mongo" bin))
784 #t))))))
785 (home-page "https://www.mongodb.org/")
786 (synopsis "High performance and high availability document database")
787 (description
788 "Mongo is a high-performance, high availability, schema-free
789 document-oriented database. A key goal of MongoDB is to bridge the gap
790 between key/value stores (which are fast and highly scalable) and traditional
791 RDBMS systems (which are deep in functionality).")
792 (license (list license:agpl3
793 ;; Some parts are licensed under the Apache License
794 license:asl2.0))))
795
796 (define-public mycli
797 (package
798 (name "mycli")
799 (version "1.22.2")
800 (source
801 (origin
802 (method url-fetch)
803 (uri (pypi-uri "mycli" version))
804 (sha256
805 (base32 "1lq2x95553vdmhw13cxcgsd2g2i32izhsb7hxd4m1iwf9b3msbpv"))))
806 (build-system python-build-system)
807 (arguments
808 `(#:tests? #f)) ; tests expect a running MySQL
809 (propagated-inputs
810 `(("python-cli-helpers" ,python-cli-helpers)
811 ("python-click" ,python-click)
812 ("python-configobj" ,python-configobj)
813 ("python-cryptography" ,python-cryptography)
814 ("python-prompt-toolkit" ,python-prompt-toolkit)
815 ("python-pygments" ,python-pygments)
816 ("python-pymysql" ,python-pymysql)
817 ("python-sqlparse" ,python-sqlparse)))
818 (home-page "http://mycli.net")
819 (synopsis
820 "Terminal Client for MySQL with AutoCompletion and Syntax Highlighting")
821 (description
822 "MyCLI is a command line interface for MySQL, MariaDB, and Percona with
823 auto-completion and syntax highlighting.")
824 (license license:bsd-3)))
825
826 ;; XXX When updating, check whether boost-for-mysql is still needed.
827 ;; It might suffice to patch ‘cmake/boost.cmake’ as done in the past.
828 (define-public mysql
829 (package
830 (name "mysql")
831 (version "5.7.27")
832 (source (origin
833 (method url-fetch)
834 (uri (list (string-append
835 "https://dev.mysql.com/get/Downloads/MySQL-"
836 (version-major+minor version) "/"
837 name "-" version ".tar.gz")
838 (string-append
839 "https://downloads.mysql.com/archives/get/file/"
840 name "-" version ".tar.gz")))
841 (sha256
842 (base32
843 "1fhv16zr46pxm1j8vb8x8mh3nwzglg01arz8gnazbmjqldr5idpq"))))
844 (build-system cmake-build-system)
845 (arguments
846 `(#:configure-flags
847 '("-DBUILD_CONFIG=mysql_release"
848 "-DWITH_SSL=system"
849 "-DWITH_ZLIB=system"
850 "-DDEFAULT_CHARSET=utf8"
851 "-DDEFAULT_COLLATION=utf8_general_ci"
852 "-DMYSQL_DATADIR=/var/lib/mysql"
853 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
854 "-DINSTALL_INFODIR=share/mysql/docs"
855 "-DINSTALL_MANDIR=share/man"
856 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
857 "-DINSTALL_SCRIPTDIR=bin"
858 "-DINSTALL_INCLUDEDIR=include/mysql"
859 "-DINSTALL_DOCREADMEDIR=share/mysql/docs"
860 "-DINSTALL_SUPPORTFILESDIR=share/mysql"
861 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
862 "-DINSTALL_DOCDIR=share/mysql/docs"
863 "-DINSTALL_SHAREDIR=share/mysql"
864 ;; Get rid of test data.
865 "-DINSTALL_MYSQLTESTDIR="
866 "-DINSTALL_SQLBENCHDIR=")
867 #:phases (modify-phases %standard-phases
868 (add-after
869 'install 'remove-extra-binaries
870 (lambda* (#:key outputs #:allow-other-keys)
871 (let ((out (assoc-ref outputs "out")))
872 ;; Remove the 3 *_embedded files, which weigh in at
873 ;; 14 MiB each.
874 (for-each delete-file
875 (find-files (string-append out "/bin")
876 "_embedded$"))
877 #t))))))
878 (native-inputs
879 `(("bison" ,bison)
880 ("perl" ,perl)
881 ("pkg-config" ,pkg-config)))
882 (inputs
883 `(("boost" ,boost-for-mysql)
884 ("libaio" ,libaio)
885 ("libtirpc" ,libtirpc)
886 ("ncurses" ,ncurses)
887 ("openssl" ,openssl)
888 ("rpcsvc-proto" ,rpcsvc-proto) ; rpcgen
889 ("zlib" ,zlib)))
890 (home-page "https://www.mysql.com/")
891 (synopsis "Fast, easy to use, and popular database")
892 (description
893 "MySQL is a fast, reliable, and easy to use relational database
894 management system that supports the standardized Structured Query
895 Language.")
896 (license license:gpl2)))
897
898 (define-public mariadb
899 (package
900 (name "mariadb")
901 (version "10.5.8")
902 (source (origin
903 (method url-fetch)
904 (uri (string-append "https://downloads.mariadb.com/MariaDB"
905 "/mariadb-" version "/source/mariadb-"
906 version ".tar.gz"))
907 (sha256
908 (base32
909 "1s3vfm73911cddjhgpcbkya6nz7ag2zygg56qqzwscn5ybv28j7b"))
910 (modules '((guix build utils)))
911 (snippet
912 '(begin
913 ;; Delete bundled snappy and xz.
914 (delete-file-recursively "storage/tokudb/PerconaFT/third_party")
915 (substitute* "storage/tokudb/PerconaFT/CMakeLists.txt"
916 ;; This file checks that the bundled sources are present and
917 ;; declares build procedures for them.
918 (("^include\\(TokuThirdParty\\)") ""))
919 (substitute* "storage/tokudb/PerconaFT/ft/CMakeLists.txt"
920 ;; Don't attempt to use the procedures we just removed.
921 ((" build_lzma build_snappy") ""))
922
923 ;; Preserve CMakeLists.txt for these.
924 (for-each (lambda (file)
925 (unless (string-suffix? "CMakeLists.txt" file)
926 (delete-file file)))
927 (append (find-files "extra/wolfssl")
928 (find-files "zlib")))
929 #t))))
930 (build-system cmake-build-system)
931 (outputs '("out" "lib" "dev"))
932 (arguments
933 `(#:configure-flags
934 (list
935 "-DBUILD_CONFIG=mysql_release"
936 ;; Linking with libarchive fails, like this:
937
938 ;; ld: /gnu/store/...-libarchive-3.2.2/lib/libarchive.a(archive_entry.o):
939 ;; relocation R_X86_64_32 against `.bss' can not be used when
940 ;; making a shared object; recompile with -fPIC
941
942 ;; For now, disable the features that that use libarchive (xtrabackup).
943 "-DWITH_LIBARCHIVE=OFF"
944
945 ;; Disable the TokuDB engine, because its test suite frequently fails,
946 ;; and loading it crashes the server: <https://bugs.gnu.org/35521>.
947 "-DTOKUDB_OK=OFF"
948
949 ;; Ensure the system libraries are used.
950 "-DWITH_JEMALLOC=yes"
951 "-DWITH_PCRE=system"
952 "-DWITH_SSL=system"
953 "-DWITH_ZLIB=system"
954
955 "-DDEFAULT_CHARSET=utf8"
956 "-DDEFAULT_COLLATION=utf8_general_ci"
957 "-DMYSQL_DATADIR=/var/lib/mysql"
958 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
959
960 ;; Do not install the tests or benchmark suite.
961 "-DINSTALL_MYSQLTESTDIR=false"
962 "-DINSTALL_SQLBENCHDIR=false"
963
964 (string-append "-DCMAKE_INSTALL_PREFIX=" (assoc-ref %outputs "lib"))
965 (string-append "-DCMAKE_INSTALL_RPATH=" (assoc-ref %outputs "lib")
966 "/lib")
967 (string-append "-DINSTALL_INFODIR=" (assoc-ref %outputs "out")
968 "/share/mysql/docs")
969 (string-append "-DINSTALL_MANDIR=" (assoc-ref %outputs "out")
970 "/share/man")
971 (string-append "-DINSTALL_SCRIPTDIR=" (assoc-ref %outputs "out") "/bin")
972 (string-append "-DINSTALL_BINDIR=" (assoc-ref %outputs "out") "/bin")
973 "-DCMAKE_INSTALL_LIBDIR=lib"
974 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
975 (string-append "-DINSTALL_INCLUDEDIR=" (assoc-ref %outputs "dev")
976 "/include/mysql")
977 (string-append "-DINSTALL_DOCREADMEDIR=" (assoc-ref %outputs "out")
978 "/share/mysql/docs")
979 (string-append "-DINSTALL_DOCDIR=" (assoc-ref %outputs "out")
980 "/share/mysql/docs")
981 (string-append "-DINSTALL_SUPPORTFILESDIR=" (assoc-ref %outputs "out")
982 "/share/mysql/support-files")
983 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
984 "-DINSTALL_SHAREDIR=share")
985 #:phases
986 (modify-phases %standard-phases
987 (add-after 'unpack 'adjust-output-references
988 (lambda _
989 ;; The build system invariably prepends $CMAKE_INSTALL_PREFIX
990 ;; to other variables such as $INSTALL_INCLUDEDIR, which does
991 ;; not work when the latter uses an absolute file name.
992 (substitute* "libmariadb/mariadb_config/mariadb_config.c.in"
993 (("@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@")
994 "@INSTALL_INCLUDEDIR@"))
995 (substitute* "libmariadb/mariadb_config/libmariadb.pc.in"
996 (("\\$\\{prefix\\}/@INSTALL_INCLUDEDIR@")
997 "@INSTALL_INCLUDEDIR@"))
998 (substitute* "include/CMakeLists.txt"
999 (("\\\\\\$\\{CMAKE_INSTALL_PREFIX\\}/\\$\\{INSTALL_INCLUDEDIR\\}")
1000 "${INSTALL_INCLUDEDIR}"))
1001 #t))
1002 (add-after 'unpack 'adjust-tests
1003 (lambda _
1004 (let ((disabled-tests
1005 '(;; These fail because root@hostname == root@localhost in
1006 ;; the build environment, causing a user count mismatch.
1007 ;; See <https://jira.mariadb.org/browse/MDEV-7761>.
1008 "funcs_1.is_columns_mysql"
1009 "main.join_cache"
1010 "main.explain_non_select"
1011 "main.stat_tables"
1012 "main.stat_tables_innodb"
1013 "main.upgrade_MDEV-19650"
1014 "roles.acl_statistics"
1015
1016 ;; FIXME: This test checks various table encodings and
1017 ;; fails because Guix defaults to UTF8 instead of the
1018 ;; upstream default latin1_swedish_ci. It's not easily
1019 ;; substitutable because several encodings are tested.
1020 "main.sp2"
1021
1022 ;; This file contains a time bomb which makes it fail after
1023 ;; 2030-12-31. See <https://bugs.gnu.org/34351> for details.
1024 "main.mysqldump"))
1025
1026 ;; This file contains a list of known-flaky tests for this
1027 ;; release. Append our own items.
1028 (unstable-tests (open-file "mysql-test/unstable-tests" "a")))
1029 (for-each (lambda (test)
1030 (format unstable-tests "~a : ~a\n"
1031 test "Disabled in Guix"))
1032 disabled-tests)
1033 (close-port unstable-tests)
1034
1035 ;; XXX: These fail because they expect a latin1 charset and
1036 ;; collation. See <https://jira.mariadb.org/browse/MDEV-21264>.
1037 (substitute* '("mysql-test/main/gis_notembedded.result"
1038 "mysql-test/main/system_mysql_db.result")
1039 (("latin1_swedish_ci") "utf8_general_ci")
1040 (("\tlatin1") "\tutf8"))
1041
1042 (substitute* "mysql-test/suite/binlog/t/binlog_mysqlbinlog_stop_never.test"
1043 (("/bin/bash")
1044 (which "bash")))
1045
1046 (substitute* "mysql-test/mysql-test-run.pl"
1047 (("/bin/ls") (which "ls"))
1048 (("/bin/sh") (which "sh")))
1049 #t)))
1050 (add-before 'configure 'disable-plugins
1051 (lambda _
1052 (let ((disable-plugin (lambda (name)
1053 (call-with-output-file
1054 (string-append "plugin/" name
1055 "/CMakeLists.txt")
1056 (lambda (port)
1057 (format port "\n")))))
1058 (disabled-plugins '(;; XXX: Causes a test failure.
1059 "disks")))
1060 (for-each disable-plugin disabled-plugins)
1061 #t)))
1062 (replace 'check
1063 (lambda* (#:key (tests? #t) #:allow-other-keys)
1064 (if tests?
1065 (with-directory-excursion "mysql-test"
1066 (invoke "./mtr" "--verbose"
1067 "--retry=3"
1068 "--testcase-timeout=40"
1069 "--suite-timeout=600"
1070 "--parallel" (number->string (parallel-job-count))
1071 ;; Skip the replication tests: they are very I/O
1072 ;; intensive and frequently causes indeterministic
1073 ;; failures even on powerful hardware.
1074 "--skip-rpl"
1075 "--skip-test-list=unstable-tests"))
1076 (format #t "test suite not run~%"))
1077 #t))
1078 (add-after
1079 'install 'post-install
1080 (lambda* (#:key inputs outputs #:allow-other-keys)
1081 (let* ((out (assoc-ref outputs "out"))
1082 (dev (assoc-ref outputs "dev"))
1083 (lib (assoc-ref outputs "lib"))
1084 (openssl (assoc-ref inputs "openssl")))
1085 (substitute* (list (string-append out "/bin/mariadb-install-db")
1086 (string-append out "/bin/mysql_install_db"))
1087 (("basedir=\"\"")
1088 (string-append "basedir=\"" out "\""))
1089 (("\\$basedir/share/mysql")
1090 (string-append lib "/share/mysql")))
1091
1092 (with-directory-excursion lib
1093 ;; FIXME: Something creates an empty gnu/store/xxx-mariadb/bin
1094 ;; directory at the root of the lib output. It's not present
1095 ;; in the installation log. This started occuring between
1096 ;; 10.5.6 and 10.5.8. How to prevent it?
1097 (delete-file-recursively "gnu")
1098 ;; Remove static libraries.
1099 (for-each delete-file (find-files "lib" "\\.a$")))
1100
1101 (with-directory-excursion out
1102 (delete-file "share/man/man1/mysql-test-run.pl.1")
1103 ;; Delete huge and unnecessary executables.
1104 (for-each delete-file (find-files "bin" "test$")))
1105 (mkdir-p (string-append dev "/share"))
1106 (mkdir-p (string-append dev "/bin"))
1107 (rename-file (string-append lib "/bin/mariadbd")
1108 (string-append out "/bin/mariadbd"))
1109 (rename-file (string-append lib "/bin/mysqld")
1110 (string-append out "/bin/mysqld"))
1111 (mkdir-p (string-append dev "/lib"))
1112 (rename-file (string-append lib "/lib/pkgconfig")
1113 (string-append dev "/lib/pkgconfig"))
1114 (rename-file (string-append lib "/bin/mariadb_config")
1115 (string-append dev "/bin/mariadb_config"))
1116 (rename-file (string-append out "/bin/mysql_config")
1117 (string-append dev "/bin/mysql_config"))
1118
1119 ;; Embed an absolute reference to OpenSSL in mysql_config
1120 ;; and the pkg-config file to avoid propagation.
1121 ;; XXX: how to do this for mariadb_config.c.in?
1122 (substitute* (list (string-append dev "/bin/mysql_config")
1123 (string-append dev "/lib/pkgconfig/mariadb.pc"))
1124 (("-lssl -lcrypto" all)
1125 (string-append "-L" openssl "/lib " all)))
1126
1127 #t))))))
1128 (native-inputs
1129 `(("bison" ,bison)
1130 ("perl" ,perl)))
1131 (inputs
1132 `(("jemalloc" ,jemalloc)
1133 ("libaio" ,libaio)
1134 ("libxml2" ,libxml2)
1135 ("ncurses" ,ncurses)
1136 ("openssl" ,openssl)
1137 ("pam" ,linux-pam)
1138 ("pcre2" ,pcre2)
1139 ("xz" ,xz)
1140 ("zlib" ,zlib)))
1141 ;; The test suite is very resource intensive and can take more than three
1142 ;; hours on a x86_64 system. Give slow and busy machines some leeway.
1143 (properties '((timeout . 64800))) ;18 hours
1144 (home-page "https://mariadb.org/")
1145 (synopsis "SQL database server")
1146 (description
1147 "MariaDB is a multi-user and multi-threaded SQL database server, designed
1148 as a drop-in replacement of MySQL.")
1149 (license license:gpl2)))
1150
1151 (define-public mariadb-connector-c
1152 (package
1153 (name "mariadb-connector-c")
1154 (version "3.1.11")
1155 (source
1156 (origin
1157 (method url-fetch)
1158 (uri (string-append
1159 "https://downloads.mariadb.org/f/connector-c-" version
1160 "/mariadb-connector-c-" version "-src.tar.gz"
1161 "/from/https%3A//mirrors.ukfast.co.uk/sites/mariadb/?serve"))
1162 (sha256
1163 (base32 "03svzahdf7czjlm695c11r4bfd04qdqgx8r1vkpr1zlkjhwnqvry"))))
1164 (inputs
1165 `(("openssl" ,openssl)))
1166 (build-system cmake-build-system)
1167 (arguments
1168 '(#:tests? #f)) ; no tests
1169 (home-page "https://mariadb.com/kb/en/mariadb-connector-c/")
1170 (synopsis "Client library to connect to MySQL or MariaDB")
1171 (description "The MariaDB Connector/C is used to connect applications
1172 developed in C/C++ to MariaDB and MySQL databases.")
1173 (license license:lgpl2.1+)))
1174
1175 ;; Don't forget to update the other postgresql packages when upgrading this one.
1176 (define-public postgresql
1177 (package
1178 (name "postgresql")
1179 (version "10.13")
1180 (source (origin
1181 (method url-fetch)
1182 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
1183 version "/postgresql-" version ".tar.bz2"))
1184 (sha256
1185 (base32
1186 "1qal0yp7a90yzya7hl56gsmw5fvacplrdhpn7h9gnbyr1i2iyw2d"))
1187 (patches (search-patches "postgresql-disable-resolve_symlinks.patch"))))
1188 (build-system gnu-build-system)
1189 (arguments
1190 `(#:configure-flags '("--with-uuid=e2fs" "--with-openssl")
1191 #:phases
1192 (modify-phases %standard-phases
1193 (add-before 'configure 'patch-/bin/sh
1194 (lambda _
1195 ;; Refer to the actual shell.
1196 (substitute* '("src/bin/pg_ctl/pg_ctl.c"
1197 "src/bin/psql/command.c")
1198 (("/bin/sh") (which "sh")))
1199 #t))
1200 (add-after 'build 'build-contrib
1201 (lambda _
1202 (invoke "make" "-C" "contrib")))
1203 (add-after 'install 'install-contrib
1204 (lambda _
1205 (invoke "make" "-C" "contrib" "install"))))))
1206 (inputs
1207 `(("readline" ,readline)
1208 ("libuuid" ,util-linux "lib")
1209 ("openssl" ,openssl)
1210 ("zlib" ,zlib)))
1211 (home-page "https://www.postgresql.org/")
1212 (synopsis "Powerful object-relational database system")
1213 (description
1214 "PostgreSQL is a powerful object-relational database system. It is fully
1215 ACID compliant, has full support for foreign keys, joins, views, triggers, and
1216 stored procedures (in multiple languages). It includes most SQL:2008 data
1217 types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and
1218 TIMESTAMP. It also supports storage of binary large objects, including
1219 pictures, sounds, or video.")
1220 (license (license:x11-style "file://COPYRIGHT"))))
1221
1222 (define-public postgresql-10 postgresql)
1223
1224 (define-public postgresql-13
1225 (package
1226 (inherit postgresql)
1227 (version "13.1")
1228 (source (origin
1229 (inherit (package-source postgresql))
1230 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
1231 version "/postgresql-" version ".tar.bz2"))
1232 (sha256
1233 (base32
1234 "07z6zwr58dckaa97yl9ml240z83d1lhgaxw9aq49i8lsp21mqd0j"))))))
1235
1236 (define-public postgresql-11
1237 (package
1238 (inherit postgresql)
1239 (name "postgresql")
1240 (version "11.6")
1241 (source (origin
1242 (method url-fetch)
1243 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
1244 version "/postgresql-" version ".tar.bz2"))
1245 (sha256
1246 (base32
1247 "0w1iq488kpzfgfnlw4k32lz5by695mpnkq461jrgsr99z5zlz4j9"))))))
1248
1249 (define-public postgresql-9.6
1250 (package
1251 (inherit postgresql)
1252 (name "postgresql")
1253 (version "9.6.16")
1254 (source (origin
1255 (method url-fetch)
1256 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
1257 version "/postgresql-" version ".tar.bz2"))
1258 (sha256
1259 (base32
1260 "1rr2dgv4ams8r2lp13w85c77rkmzpb88fjlc28mvlw6zq2fblv2w"))))))
1261
1262 (define-public python-pymysql
1263 (package
1264 (name "python-pymysql")
1265 (version "0.9.3")
1266 (source
1267 (origin
1268 (method url-fetch)
1269 (uri (pypi-uri "PyMySQL" version))
1270 (sha256
1271 (base32 "1ry8lxgdc1p3k7gbw20r405jqi5lvhi5wk83kxdbiv8xv3f5kh6q"))))
1272 (build-system python-build-system)
1273 (native-inputs
1274 `(("python-unittest2" ,python-unittest2)))
1275 (inputs
1276 `(("python-cryptography" ,python-cryptography)))
1277 (arguments
1278 `(#:tests? #f)) ; tests expect a running MySQL
1279 (home-page "https://github.com/PyMySQL/PyMySQL/")
1280 (synopsis "Pure-Python MySQL driver")
1281 (description
1282 "PyMySQL is a pure-Python MySQL client library, based on PEP 249.
1283 Most public APIs are compatible with @command{mysqlclient} and MySQLdb.")
1284 (license license:expat)))
1285
1286 (define-public python2-pymysql
1287 (package-with-python2 python-pymysql))
1288
1289 (define-public qdbm
1290 (package
1291 (name "qdbm")
1292 (version "1.8.78")
1293 (source
1294 (origin
1295 (method url-fetch)
1296 (uri (string-append "http://fallabs.com/" name "/"
1297 name "-" version ".tar.gz"))
1298 (sha256
1299 (base32
1300 "0gmpvhn02pkq280ffmn4da1g4mdr1xxz7l80b7y4n7km1mrzwrml"))))
1301 (build-system gnu-build-system)
1302 (arguments
1303 `(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
1304 (assoc-ref %outputs "out")
1305 "/lib"))
1306 #:make-flags (list "CFLAGS=-fPIC")))
1307 (home-page "https://fallabs.com/qdbm/")
1308 (synopsis "Key-value database")
1309 (description "QDBM is a library of routines for managing a
1310 database. The database is a simple data file containing key-value
1311 pairs. Every key and value is serial bytes with variable length.
1312 Binary data as well as character strings can be used as a key or a
1313 value. There is no concept of data tables or data types. Records are
1314 organized in a hash table or B+ tree.")
1315 (license license:lgpl2.1+)))
1316
1317 (define-public recutils
1318 (package
1319 (name "recutils")
1320 (version "1.8")
1321 (source (origin
1322 (method url-fetch)
1323 (uri (string-append "mirror://gnu/recutils/recutils-"
1324 version ".tar.gz"))
1325 (sha256
1326 (base32
1327 "14xiln4immfsw8isnvwvq0h23f6z0wilpgsc4qzabnrzb5lsx3nz"))))
1328 (build-system gnu-build-system)
1329
1330 (arguments '(#:configure-flags
1331 (list (string-append "--with-bash-headers="
1332 (assoc-ref %build-inputs "bash:include")
1333 "/include/bash"))))
1334
1335 (native-inputs `(("bc" ,bc)
1336 ("bash:include" ,bash "include")
1337 ("check" ,check-0.14)
1338 ("pkg-config" ,pkg-config)))
1339
1340 ;; TODO: Add more optional inputs.
1341 (inputs `(("curl" ,curl)
1342 ("libgcrypt" ,libgcrypt)
1343 ("libuuid" ,util-linux "lib")))
1344 (synopsis "Manipulate plain text files as databases")
1345 (description
1346 "GNU Recutils is a set of tools and libraries for creating and
1347 manipulating text-based, human-editable databases. Despite being text-based,
1348 databases created with Recutils carry all of the expected features such as
1349 unique fields, primary keys, time stamps and more. Many different field
1350 types are supported, as is encryption.")
1351 (license license:gpl3+)
1352 (home-page "https://www.gnu.org/software/recutils/")))
1353
1354 (define-public emacs-recutils
1355 (package
1356 (inherit recutils)
1357 (name "emacs-recutils")
1358 (build-system emacs-build-system)
1359 (arguments
1360 '(#:phases
1361 (modify-phases %standard-phases
1362 (add-after 'unpack 'change-directory
1363 (lambda _
1364 (chdir "etc")
1365 #t)))))
1366 (native-inputs '())
1367 (inputs '())
1368 (synopsis "Emacs mode for working with recutils database files")
1369 (description "This package provides an Emacs major mode @code{rec-mode}
1370 for working with GNU Recutils text-based, human-editable databases. It
1371 supports editing, navigation, and querying of recutils database files
1372 including field and record folding.")))
1373
1374 (define-public rocksdb
1375 (package
1376 (name "rocksdb")
1377 (version "6.11.4")
1378 (source (origin
1379 (method git-fetch)
1380 (uri (git-reference
1381 (url "https://github.com/facebook/rocksdb")
1382 (commit (string-append "v" version))))
1383 (file-name (git-file-name name version))
1384 (sha256
1385 (base32
1386 "0n19p9cd13jg0lnibrzwkxs4xlrhyj3knypkd2ic41arbds0bdnl"))
1387 (modules '((guix build utils)))
1388 (snippet
1389 '(begin
1390 ;; TODO: unbundle gtest.
1391 (delete-file "build_tools/gnu_parallel")
1392 (substitute* "Makefile"
1393 (("build_tools/gnu_parallel") "parallel"))
1394 #t))))
1395 (build-system gnu-build-system)
1396 (arguments
1397 `(#:make-flags (list "CC=gcc" "V=1"
1398 ;; Ceph requires that RTTI is enabled.
1399 "USE_RTTI=1"
1400 "date=1970-01-01" ; build reproducibly
1401 (string-append "INSTALL_PATH="
1402 (assoc-ref %outputs "out"))
1403
1404 ;; Running the full test suite takes hours and require
1405 ;; a lot of disk space. Instead we only run a subset
1406 ;; (see .travis.yml and Makefile).
1407 "ROCKSDBTESTS_END=db_tailing_iter_test")
1408 #:test-target "check_some"
1409 ;; Many tests fail on 32-bit platforms. There are multiple reports about
1410 ;; this upstream, but it's not going to be supported any time soon.
1411 #:tests? (let ((system ,(or (%current-target-system)
1412 (%current-system))))
1413 (or (string-prefix? "x86_64-linux" system)
1414 (string-prefix? "aarch64-linux" system)))
1415 #:phases
1416 (modify-phases %standard-phases
1417 (add-after 'unpack 'patch-Makefile
1418 (lambda _
1419 (substitute* "Makefile"
1420 ;; Don't depend on the static library when installing.
1421 (("install: install-static")
1422 "install: install-shared")
1423 (("#!/bin/sh") (string-append "#!" (which "sh"))))
1424 #t))
1425 (delete 'configure)
1426 ;; The default target is only needed for tests and built on demand.
1427 (delete 'build)
1428 (add-before 'check 'disable-optimizations
1429 (lambda _
1430 ;; Prevent the build from passing '-march=native' to the compiler.
1431 (setenv "PORTABLE" "1")
1432 #t))
1433 (add-before 'check 'disable-failing-tests
1434 (lambda _
1435 (substitute* "Makefile"
1436 ;; These tests reliably fail due to "Too many open files".
1437 (("^[[:blank:]]+env_test[[:blank:]]+\\\\") "\\")
1438 (("^[[:blank:]]+persistent_cache_test[[:blank:]]+\\\\") "\\"))
1439 #t))
1440 (add-after 'check 'build
1441 ;; The default build target is a debug build for tests. The
1442 ;; install target depends on the "shared_lib" release target
1443 ;; so we build it here for clarity.
1444 (lambda* (#:key (make-flags '()) parallel-build? #:allow-other-keys)
1445 (apply invoke "make" "shared_lib"
1446 `(,@(if parallel-build?
1447 `("-j" ,(number->string (parallel-job-count)))
1448 '())
1449 ,@make-flags)))))))
1450 (native-inputs
1451 `(("parallel" ,parallel)
1452 ("perl" ,perl)
1453 ("procps" ,procps)
1454 ("python" ,python-2)
1455 ("which" ,which)))
1456 (inputs
1457 `(("bzip2" ,bzip2)
1458 ("gflags" ,gflags)
1459 ("jemalloc" ,jemalloc)
1460 ("lz4" ,lz4)
1461 ("snappy" ,snappy)
1462 ("zlib" ,zlib)))
1463 (home-page "https://rocksdb.org/")
1464 (synopsis "Persistent key-value store for fast storage")
1465 (description
1466 "RocksDB is a library that forms the core building block for a fast
1467 key-value server, especially suited for storing data on flash drives. It
1468 has a @dfn{Log-Structured-Merge-Database} (LSM) design with flexible tradeoffs
1469 between @dfn{Write-Amplification-Factor} (WAF), @dfn{Read-Amplification-Factor}
1470 (RAF) and @dfn{Space-Amplification-Factor} (SAF). It has multi-threaded
1471 compactions, making it specially suitable for storing multiple terabytes of
1472 data in a single database. RocksDB is partially based on @code{LevelDB}.")
1473 ;; RocksDB is dual licensed under GPL2 and ASL 2.0. Some header
1474 ;; files carry the 3-clause BSD license.
1475 (license (list license:gpl2 license:asl2.0 license:bsd-3))))
1476
1477 (define-public sparql-query
1478 (package
1479 (name "sparql-query")
1480 (version "1.1")
1481 (source (origin
1482 (method git-fetch)
1483 (uri (git-reference
1484 (url "https://github.com/tialaramex/sparql-query")
1485 (commit version)))
1486 (sha256
1487 (base32 "0a84a89idpjhj9w2y3fmvzv7ldps1cva1kxvfmh897k02kaniwxk"))
1488 (file-name (git-file-name name version))))
1489 (build-system gnu-build-system)
1490 (inputs
1491 `(("curl" ,curl)
1492 ("glib" ,glib)
1493 ("libxml2" ,libxml2)
1494 ("ncurses" ,ncurses)
1495 ("readline" ,readline)))
1496 (native-inputs
1497 `(("pkg-config" ,pkg-config)))
1498 (arguments
1499 `(#:make-flags '("CC=gcc")
1500 #:phases
1501 (modify-phases %standard-phases
1502 (delete 'configure)
1503 ;; The Makefile uses git to obtain versioning information. This phase
1504 ;; substitutes the git invocation with the package version.
1505 (add-after 'unpack 'remove-git-dependency
1506 (lambda _
1507 (substitute* "Makefile"
1508 (("^gitrev :=.*$")
1509 (string-append "gitrev = \"v" ,version "\"")))
1510 #t))
1511 ;; The install phase of the Makefile assumes $PREFIX/usr/local/bin.
1512 ;; This replacement does the same thing, except for using $PREFIX/bin
1513 ;; instead.
1514 (replace 'install
1515 (lambda* (#:key outputs #:allow-other-keys)
1516 (let* ((out (assoc-ref outputs "out"))
1517 (bin (string-append out "/bin")))
1518 (install-file "sparql-query" bin)
1519 (symlink (string-append bin "/sparql-query")
1520 (string-append bin "/sparql-update")))
1521 #t))
1522 (replace 'check
1523 (lambda* (#:key make-flags #:allow-other-keys)
1524 (apply invoke "make" `(,@make-flags "scan-test"))
1525 (invoke "./scan-test"))))))
1526 (home-page "https://github.com/tialaramex/sparql-query/")
1527 (synopsis "Command-line tool for accessing SPARQL endpoints over HTTP")
1528 (description "Sparql-query is a command-line tool for accessing SPARQL
1529 endpoints over HTTP. It has been intentionally designed to @code{feel} similar to
1530 tools for interrogating SQL databases. For example, you can enter a query over
1531 several lines, using a semi-colon at the end of a line to indicate the end of
1532 your query. It also supports readline so that you can more easily recall and
1533 edit previous queries, even across sessions. It can be used non-interactively,
1534 for example from a shell script.")
1535 ;; Some files (like scan-sparql.c) contain a GPLv3+ license header, while
1536 ;; others (like sparql-query.c) contain a GPLv2+ license header.
1537 (license (list license:gpl3+))))
1538
1539 (define-public sqitch
1540 (package
1541 (name "sqitch")
1542 (version "1.1.0")
1543 (source
1544 (origin
1545 (method url-fetch)
1546 (uri (string-append
1547 "mirror://cpan/authors/id/D/DW/DWHEELER/App-Sqitch-v"
1548 version ".tar.gz"))
1549 (sha256
1550 (base32 "1ayiwg9kh3w0nbacbcln7h944z94vq5vnnd5diz86033bpbnq57f"))))
1551 (build-system perl-build-system)
1552 (arguments
1553 '(#:phases
1554 (modify-phases %standard-phases
1555 (add-before 'check 'set-check-environment
1556 (lambda _
1557 (setenv "TZ" "UTC")
1558 (setenv "HOME" "/tmp")
1559 #t))
1560 (add-after 'install 'wrap-program
1561 (lambda* (#:key outputs #:allow-other-keys)
1562 (let* ((out (assoc-ref outputs "out"))
1563 (path (getenv "PERL5LIB")))
1564 (wrap-program (string-append out "/bin/sqitch")
1565 `("PERL5LIB" ":" prefix
1566 (,(string-append out "/lib/perl5/site_perl"
1567 ":"
1568 path)))))
1569 #t)))))
1570 (native-inputs
1571 `(("perl-capture-tiny" ,perl-capture-tiny)
1572 ("perl-io-pager" ,perl-io-pager)
1573 ("perl-module-build" ,perl-module-build)
1574 ("perl-module-runtime" ,perl-module-runtime)
1575 ("perl-path-class" ,perl-path-class)
1576 ("perl-test-deep" ,perl-test-deep)
1577 ("perl-test-dir" ,perl-test-dir)
1578 ("perl-test-exception" ,perl-test-exception)
1579 ("perl-test-file" ,perl-test-file)
1580 ("perl-test-file-contents" ,perl-test-file-contents)
1581 ("perl-test-mockmodule" ,perl-test-mockmodule)
1582 ("perl-test-mockobject" ,perl-test-mockobject)
1583 ("perl-test-nowarnings" ,perl-test-nowarnings)
1584 ("perl-test-warn" ,perl-test-warn)))
1585 (inputs
1586 `(("perl-class-xsaccessor" ,perl-class-xsaccessor)
1587 ("perl-clone" ,perl-clone)
1588 ("perl-config-gitlike" ,perl-config-gitlike)
1589 ("perl-datetime" ,perl-datetime)
1590 ("perl-datetime-timezone" ,perl-datetime-timezone)
1591 ("perl-dbd-mysql" ,perl-dbd-mysql)
1592 ("perl-dbd-pg" ,perl-dbd-pg)
1593 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1594 ("perl-dbi" ,perl-dbi)
1595 ("perl-devel-stacktrace" ,perl-devel-stacktrace)
1596 ("perl-encode-locale" ,perl-encode-locale)
1597 ("perl-hash-merge" ,perl-hash-merge)
1598 ("perl-ipc-run3" ,perl-ipc-run3)
1599 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
1600 ("perl-libintl-perl" ,perl-libintl-perl)
1601 ("perl-list-moreutils" ,perl-list-moreutils)
1602 ("perl-moo" ,perl-moo)
1603 ("perl-mysql-config" ,perl-mysql-config)
1604 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1605 ("perl-path-class" ,perl-path-class)
1606 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
1607 ("perl-string-formatter" ,perl-string-formatter)
1608 ("perl-string-shellquote" ,perl-string-shellquote)
1609 ("perl-sub-exporter" ,perl-sub-exporter)
1610 ("perl-template-tiny" ,perl-template-tiny)
1611 ("perl-template-toolkit" ,perl-template-toolkit)
1612 ("perl-throwable" ,perl-throwable)
1613 ("perl-try-tiny" ,perl-try-tiny)
1614 ("perl-type-tiny" ,perl-type-tiny)
1615 ("perl-type-tiny-xs" ,perl-type-tiny-xs)
1616 ("perl-uri" ,perl-uri)
1617 ("perl-uri-db" ,perl-uri-db)))
1618 (home-page "https://sqitch.org/")
1619 (synopsis "Database change management tool")
1620 (description
1621 "Sqitch is a standalone change management system for database schemas,
1622 which uses SQL to describe changes.")
1623 (license license:x11)))
1624
1625 (define-public sqlcrush
1626 ;; Unfortunately, there is no proper upstream release and may never be.
1627 (let ((commit "b5f6868f189566a26eecc78d0f0659813c1aa98a")
1628 (revision "1"))
1629 (package
1630 (name "sqlcrush")
1631 (version (git-version "0.1.5" revision commit))
1632 (source (origin
1633 (method git-fetch)
1634 (uri (git-reference
1635 (url "https://github.com/coffeeandscripts/sqlcrush")
1636 (commit commit)))
1637 (file-name (git-file-name name version))
1638 (sha256
1639 (base32
1640 "0x3wy40r93p0jv3nbwj9a77wa4ff697d13r0wffmm7q9h3mzsww8"))))
1641 (build-system python-build-system)
1642 (inputs
1643 `(("python-cryptography" ,python-cryptography)
1644 ("python-psycopg2" ,python-psycopg2)
1645 ("python-pymysql" ,python-pymysql)
1646 ("python-sqlalchemy" ,python-sqlalchemy)))
1647 (home-page "https://github.com/coffeeandscripts/sqlcrush")
1648 (synopsis "Text console-based database viewer and editor")
1649 (description
1650 "SQLcrush lets you view and edit a database directly from the text
1651 console through an ncurses interface. You can explore each table's structure,
1652 browse and edit the contents, add and delete entries, all while tracking your
1653 changes.")
1654 (license license:gpl3+)))) ; no headers, see README.md
1655
1656 (define-public tdb
1657 (package
1658 (name "tdb")
1659 (version "1.4.3")
1660 (source (origin
1661 (method url-fetch)
1662 (uri (string-append "https://www.samba.org/ftp/tdb/tdb-"
1663 version ".tar.gz"))
1664 (sha256
1665 (base32
1666 "06waz0k50c7v3chd08mzp2rv7w4k4q9isbxx3vhlfpx1vy9q61f8"))))
1667 (build-system gnu-build-system)
1668 (arguments
1669 '(#:phases
1670 (modify-phases %standard-phases
1671 (replace 'configure
1672 (lambda* (#:key outputs #:allow-other-keys)
1673 (let ((out (assoc-ref outputs "out")))
1674 ;; The 'configure' script is a wrapper for Waf and
1675 ;; doesn't recognize things like '--enable-fast-install'.
1676 (invoke "./configure"
1677 (string-append "--prefix=" out))))))))
1678 (native-inputs
1679 `(;; TODO: Build the documentation.
1680 ;; ("docbook-xsl" ,docbook-xsl)
1681 ;; ("libxml2" ,libxml2)
1682 ;; ("libxslt" ,libxslt)
1683 ("python" ,python) ;for the Waf build system
1684 ("which" ,which)))
1685 (home-page "https://tdb.samba.org/")
1686 (synopsis "Trivial database")
1687 (description
1688 "TDB is a Trivial Database. In concept, it is very much like GDBM,
1689 and BSD's DB except that it allows multiple simultaneous writers and uses
1690 locking internally to keep writers from trampling on each other. TDB is also
1691 extremely small.")
1692 (license license:lgpl3+)))
1693
1694 (define-public perl-dbi
1695 (package
1696 (name "perl-dbi")
1697 (version "1.643")
1698 (source (origin
1699 (method url-fetch)
1700 (uri (string-append
1701 "mirror://cpan/authors/id/T/TI/TIMB/DBI-"
1702 version ".tar.gz"))
1703 (sha256
1704 (base32
1705 "1yinx39960y241vf2sknxj0dfz82a5m9gvklq5rw78k0nlyrjawa"))))
1706 (build-system perl-build-system)
1707 (synopsis "Database independent interface for Perl")
1708 (description "This package provides an database interface for Perl.")
1709 (home-page "https://metacpan.org/release/DBI")
1710 (license license:perl-license)))
1711
1712 (define-public perl-dbix-class
1713 (package
1714 (name "perl-dbix-class")
1715 (version "0.082842")
1716 (source
1717 (origin
1718 (method url-fetch)
1719 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
1720 "DBIx-Class-" version ".tar.gz"))
1721 (sha256
1722 (base32 "1rh7idjjbibc1zmiaaarask434lh0lx7f2xyfwmy37k9fa0xcpmh"))))
1723 (build-system perl-build-system)
1724 (native-inputs
1725 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
1726 ("perl-file-temp" ,perl-file-temp)
1727 ("perl-module-install" ,perl-module-install)
1728 ("perl-package-stash" ,perl-package-stash)
1729 ("perl-test-deep" ,perl-test-deep)
1730 ("perl-test-exception" ,perl-test-exception)
1731 ("perl-test-warn" ,perl-test-warn)))
1732 (propagated-inputs
1733 `(("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1734 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1735 ("perl-class-inspector" ,perl-class-inspector)
1736 ("perl-config-any" ,perl-config-any)
1737 ("perl-context-preserve" ,perl-context-preserve)
1738 ("perl-data-dumper-concise" ,perl-data-dumper-concise)
1739 ("perl-data-page" ,perl-data-page)
1740 ("perl-dbi" ,perl-dbi)
1741 ("perl-devel-globaldestruction" ,perl-devel-globaldestruction)
1742 ("perl-hash-merge" ,perl-hash-merge)
1743 ("perl-module-find" ,perl-module-find)
1744 ("perl-moo" ,perl-moo)
1745 ("perl-mro-compat" ,perl-mro-compat)
1746 ("perl-namespace-clean" ,perl-namespace-clean)
1747 ("perl-path-class" ,perl-path-class)
1748 ("perl-scalar-list-utils" ,perl-scalar-list-utils)
1749 ("perl-scope-guard" ,perl-scope-guard)
1750 ("perl-sql-abstract-classic" ,perl-sql-abstract-classic)
1751 ("perl-sub-name" ,perl-sub-name)
1752 ("perl-text-balanced" ,perl-text-balanced)
1753 ("perl-try-tiny" ,perl-try-tiny)))
1754 (home-page "https://metacpan.org/release/DBIx-Class")
1755 (synopsis "Extensible and flexible object <-> relational mapper")
1756 (description "An SQL to OO mapper with an object API inspired by
1757 Class::DBI (with a compatibility layer as a springboard for porting) and a
1758 resultset API that allows abstract encapsulation of database operations. It
1759 aims to make representing queries in your code as perl-ish as possible while
1760 still providing access to as many of the capabilities of the database as
1761 possible, including retrieving related records from multiple tables in a
1762 single query, \"JOIN\", \"LEFT JOIN\", \"COUNT\", \"DISTINCT\", \"GROUP BY\",
1763 \"ORDER BY\" and \"HAVING\" support.")
1764 (license license:perl-license)))
1765
1766 (define-public perl-dbix-class-cursor-cached
1767 (package
1768 (name "perl-dbix-class-cursor-cached")
1769 (version "1.001004")
1770 (source
1771 (origin
1772 (method url-fetch)
1773 (uri (string-append "mirror://cpan/authors/id/A/AR/ARCANEZ/"
1774 "DBIx-Class-Cursor-Cached-" version ".tar.gz"))
1775 (sha256
1776 (base32
1777 "09b2jahn2x12qm4f7qm1jzsxbz7qn1czp6a3fnl5l2i3l4r5421p"))))
1778 (build-system perl-build-system)
1779 (native-inputs
1780 `(("perl-cache-cache" ,perl-cache-cache)
1781 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1782 ("perl-module-install" ,perl-module-install)))
1783 (propagated-inputs
1784 `(("perl-carp-clan" ,perl-carp-clan)
1785 ("perl-dbix-class" ,perl-dbix-class)))
1786 (home-page "https://metacpan.org/release/DBIx-Class-Cursor-Cached")
1787 (synopsis "Cursor with built-in caching support")
1788 (description "DBIx::Class::Cursor::Cached provides a cursor class with
1789 built-in caching support.")
1790 (license license:perl-license)))
1791
1792 (define-public perl-dbix-class-introspectablem2m
1793 (package
1794 (name "perl-dbix-class-introspectablem2m")
1795 (version "0.001002")
1796 (source
1797 (origin
1798 (method url-fetch)
1799 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1800 "DBIx-Class-IntrospectableM2M-" version ".tar.gz"))
1801 (sha256
1802 (base32
1803 "1w47rh2241iy5x3a9bqsyd5kdp9sk43dksr99frzv4qn4jsazfn6"))))
1804 (build-system perl-build-system)
1805 (native-inputs
1806 `(("perl-module-install" ,perl-module-install)))
1807 (propagated-inputs
1808 `(("perl-dbix-class" ,perl-dbix-class)))
1809 (home-page "https://metacpan.org/release/DBIx-Class-IntrospectableM2M")
1810 (synopsis "Introspect many-to-many relationships")
1811 (description "Because the many-to-many relationships are not real
1812 relationships, they can not be introspected with DBIx::Class. Many-to-many
1813 relationships are actually just a collection of convenience methods installed
1814 to bridge two relationships. This DBIx::Class component can be used to store
1815 all relevant information about these non-relationships so they can later be
1816 introspected and examined.")
1817 (license license:perl-license)))
1818
1819 (define-public perl-dbix-class-schema-loader
1820 (package
1821 (name "perl-dbix-class-schema-loader")
1822 (version "0.07049")
1823 (source
1824 (origin
1825 (method url-fetch)
1826 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1827 "DBIx-Class-Schema-Loader-" version ".tar.gz"))
1828 (sha256
1829 (base32
1830 "0r57fv71ypxafb85cpxph1hdqii7ipjwvc19yb6fpkvq2ggcssg8"))))
1831 (build-system perl-build-system)
1832 (native-inputs
1833 `(("perl-config-any" ,perl-config-any)
1834 ("perl-config-general" ,perl-config-general)
1835 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1836 ("perl-dbix-class-introspectablem2m" ,perl-dbix-class-introspectablem2m)
1837 ("perl-module-install" ,perl-module-install)
1838 ("perl-moose" ,perl-moose)
1839 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
1840 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
1841 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1842 ("perl-test-deep" ,perl-test-deep)
1843 ("perl-test-differences" ,perl-test-differences)
1844 ("perl-test-exception" ,perl-test-exception)
1845 ("perl-test-pod" ,perl-test-pod)
1846 ("perl-test-warn" ,perl-test-warn)))
1847 (propagated-inputs
1848 `(("perl-class-unload" ,perl-class-unload)
1849 ("perl-class-inspector" ,perl-class-inspector)
1850 ("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1851 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1852 ("perl-carp-clan" ,perl-carp-clan)
1853 ("perl-data-dump" ,perl-data-dump)
1854 ("perl-dbix-class" ,perl-dbix-class)
1855 ("perl-hash-merge" ,perl-hash-merge)
1856 ("perl-list-moreutils" ,perl-list-moreutils)
1857 ("perl-lingua-en-inflect-phrase" ,perl-lingua-en-inflect-phrase)
1858 ("perl-lingua-en-inflect-number" ,perl-lingua-en-inflect-number)
1859 ("perl-lingua-en-tagger" ,perl-lingua-en-tagger)
1860 ("perl-namespace-clean" ,perl-namespace-clean)
1861 ("perl-mro-compat" ,perl-mro-compat)
1862 ("perl-scope-guard" ,perl-scope-guard)
1863 ("perl-string-camelcase" ,perl-string-camelcase)
1864 ("perl-string-toidentifier-en" ,perl-string-toidentifier-en)
1865 ("perl-sub-name" ,perl-sub-name)
1866 ("perl-try-tiny" ,perl-try-tiny)))
1867 (arguments `(#:tests? #f)) ;TODO: t/20invocations.t fails
1868 (home-page "https://metacpan.org/release/DBIx-Class-Schema-Loader")
1869 (synopsis "Create a DBIx::Class::Schema based on a database")
1870 (description "DBIx::Class::Schema::Loader automates the definition of a
1871 DBIx::Class::Schema by scanning database table definitions and setting up the
1872 columns, primary keys, unique constraints and relationships.")
1873 (license license:perl-license)))
1874
1875 (define-public perl-dbd-pg
1876 (package
1877 (name "perl-dbd-pg")
1878 (version "3.7.4")
1879 (source
1880 (origin
1881 (method url-fetch)
1882 (uri (string-append "mirror://cpan/authors/id/T/TU/TURNSTEP/"
1883 "DBD-Pg-" version ".tar.gz"))
1884 (sha256
1885 (base32
1886 "0gkqlvbmzbdm0g4k328nlkjdg3wrjm5i2n9jxj1i8sqxkm79rylz"))))
1887 (build-system perl-build-system)
1888 (native-inputs
1889 `(("perl-dbi" ,perl-dbi)))
1890 (propagated-inputs
1891 `(("perl-dbi" ,perl-dbi)
1892 ("postgresql" ,postgresql)))
1893 (home-page "https://metacpan.org/release/DBD-Pg")
1894 (synopsis "DBI PostgreSQL interface")
1895 (description "This package provides a PostgreSQL driver for the Perl5
1896 @dfn{Database Interface} (DBI).")
1897 (license license:perl-license)))
1898
1899 (define-public perl-dbd-mysql
1900 (package
1901 (name "perl-dbd-mysql")
1902 (version "4.050")
1903 (source
1904 (origin
1905 (method url-fetch)
1906 (uri (string-append "mirror://cpan/authors/id/D/DV/DVEEDEN/"
1907 "DBD-mysql-" version ".tar.gz"))
1908 (sha256
1909 (base32 "0y4djb048i09dk19av7mzfb3khr72vw11p3ayw2p82jsy4gm8j2g"))))
1910 (build-system perl-build-system)
1911 (arguments
1912 `(#:phases
1913 (modify-phases %standard-phases
1914 (add-before 'configure 'skip-library-detection
1915 ;; Avoid depencies on perl-devel-checklib, openssl, and zlib. They
1916 ;; are really only needed for the test suite; their absence does not
1917 ;; affect the build or the end result.
1918 (lambda _
1919 (substitute* "Makefile.PL"
1920 (("use Devel::CheckLib;" match)
1921 (string-append "# " match))
1922 (("assert_lib")
1923 "print"))
1924 #t)))
1925 ;; Tests require running MySQL server.
1926 #:tests? #f))
1927 (propagated-inputs
1928 `(("perl-dbi" ,perl-dbi)
1929 ("mysql" ,mariadb "lib")
1930 ("mysql-dev" ,mariadb "dev")))
1931 (home-page "https://metacpan.org/release/DBD-mysql")
1932 (synopsis "DBI MySQL interface")
1933 (description "This package provides a MySQL driver for the Perl5
1934 @dfn{Database Interface} (DBI).")
1935 (license license:perl-license)))
1936
1937 (define-public perl-dbd-sqlite
1938 (package
1939 (name "perl-dbd-sqlite")
1940 (version "1.66")
1941 (source (origin
1942 (method url-fetch)
1943 (uri (string-append
1944 "mirror://cpan/authors/id/I/IS/ISHIGAKI/DBD-SQLite-"
1945 version ".tar.gz"))
1946 (sha256
1947 (base32
1948 "1zljln5nh61gj3k22a1fv2vhx5l83waizmarwkh77hk6kzzmvrw9"))))
1949 (build-system perl-build-system)
1950 (inputs `(("sqlite" ,sqlite)))
1951 (propagated-inputs `(("perl-dbi" ,perl-dbi)))
1952 (synopsis "SQlite interface for Perl")
1953 (description "DBD::SQLite is a Perl DBI driver for SQLite, that includes
1954 the entire thing in the distribution. So in order to get a fast transaction
1955 capable RDBMS working for your Perl project you simply have to install this
1956 module, and nothing else.")
1957 (license license:perl-license)
1958 (home-page "https://metacpan.org/release/DBD-SQLite")))
1959
1960 (define-public perl-mysql-config
1961 (package
1962 (name "perl-mysql-config")
1963 (version "1.04")
1964 (source
1965 (origin
1966 (method url-fetch)
1967 (uri (string-append
1968 "mirror://cpan/authors/id/D/DA/DARREN/MySQL-Config-"
1969 version
1970 ".tar.gz"))
1971 (sha256
1972 (base32
1973 "1svn7ccw2gc4cazvc58j84rxhnc9vs01zpird0l8460598j475qr"))))
1974 (build-system perl-build-system)
1975 (home-page "https://metacpan.org/release/MySQL-Config")
1976 (synopsis "Parse and utilize MySQL's /etc/my.cnf and ~/.my.cnf files")
1977 (description
1978 "@code{MySQL::Config} emulates the @code{load_defaults} function from
1979 libmysqlclient. It will fill an array with long options, ready to be parsed by
1980 @code{Getopt::Long}.")
1981 (license license:perl-license)))
1982
1983 (define-public perl-sql-abstract
1984 (package
1985 (name "perl-sql-abstract")
1986 (version "1.87")
1987 (source
1988 (origin
1989 (method url-fetch)
1990 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1991 "SQL-Abstract-" version ".tar.gz"))
1992 (sha256
1993 (base32 "0jhw91b23wc9bkfwcgvka4x5ddxk58m9bcp5ay7a3vx77nla09p9"))))
1994 (build-system perl-build-system)
1995 (native-inputs
1996 `(("perl-module-install" ,perl-module-install)
1997 ("perl-test-deep" ,perl-test-deep)
1998 ("perl-test-exception" ,perl-test-exception)
1999 ("perl-test-warn" ,perl-test-warn)))
2000 (propagated-inputs
2001 `(("perl-hash-merge" ,perl-hash-merge)
2002 ("perl-moo" ,perl-moo)
2003 ("perl-mro-compat" ,perl-mro-compat)
2004 ("perl-text-balanced" ,perl-text-balanced)))
2005 (home-page "https://metacpan.org/release/SQL-Abstract")
2006 (synopsis "Generate SQL from Perl data structures")
2007 (description "This module was inspired by the excellent DBIx::Abstract.
2008 While based on the concepts used by DBIx::Abstract, the concepts used have
2009 been modified to make the SQL easier to generate from Perl data structures.
2010 The underlying idea is for this module to do what you mean, based on the data
2011 structures you provide it, so that you don't have to modify your code every
2012 time your data changes.")
2013 (license license:perl-license)))
2014
2015 (define-public perl-sql-abstract-classic
2016 (package
2017 (name "perl-sql-abstract-classic")
2018 (version "1.91")
2019 (source
2020 (origin
2021 (method url-fetch)
2022 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
2023 "SQL-Abstract-Classic-" version ".tar.gz"))
2024 (sha256
2025 (base32 "0a7g13hs3kdxrjn43sfli09mgsi9d6w0dfw6hlk268av17yisgaf"))))
2026 (build-system perl-build-system)
2027 (native-inputs
2028 `(("perl-test-deep" ,perl-test-deep)
2029 ("perl-test-exception" ,perl-test-exception)
2030 ("perl-test-warn" ,perl-test-warn)))
2031 (propagated-inputs
2032 `(("perl-mro-compat" ,perl-mro-compat)
2033 ("perl-sql-abstract" ,perl-sql-abstract)))
2034 (home-page "https://metacpan.org/release/SQL-Abstract-Classic")
2035 (synopsis "Generate SQL from Perl data structures")
2036 (description
2037 "This module is nearly identical to @code{SQL::Abstract} 1.81, and exists
2038 to preserve the ability of users to opt into the new way of doing things in
2039 later versions according to their own schedules.
2040
2041 It is an abstract SQL generation module based on the concepts used by
2042 @code{DBIx::Abstract}, with several important differences, especially when it
2043 comes to @code{WHERE} clauses. These concepts were modified to make the SQL
2044 easier to generate from Perl data structures.
2045
2046 The underlying idea is for this module to do what you mean, based on the data
2047 structures you provide it. You shouldn't have to modify your code every time
2048 your data changes, as this module figures it out.")
2049 (license license:perl-license)))
2050
2051 (define-public perl-sql-splitstatement
2052 (package
2053 (name "perl-sql-splitstatement")
2054 (version "1.00020")
2055 (source
2056 (origin
2057 (method url-fetch)
2058 (uri (string-append "mirror://cpan/authors/id/E/EM/EMAZEP/"
2059 "SQL-SplitStatement-" version ".tar.gz"))
2060 (sha256
2061 (base32
2062 "0bqg45k4c9qkb2ypynlwhpvzsl4ssfagmsalys18s5c79ps30z7p"))))
2063 (build-system perl-build-system)
2064 (native-inputs
2065 `(("perl-test-exception" ,perl-test-exception)))
2066 (propagated-inputs
2067 `(("perl-class-accessor" ,perl-class-accessor)
2068 ("perl-list-moreutils" ,perl-list-moreutils)
2069 ("perl-regexp-common" ,perl-regexp-common)
2070 ("perl-sql-tokenizer" ,perl-sql-tokenizer)))
2071 (home-page "https://metacpan.org/release/SQL-SplitStatement")
2072 (synopsis "Split SQL code into atomic statements")
2073 (description "This module tries to split any SQL code, even including
2074 non-standard extensions, into the atomic statements it is composed of.")
2075 (license license:perl-license)))
2076
2077 (define-public perl-sql-tokenizer
2078 (package
2079 (name "perl-sql-tokenizer")
2080 (version "0.24")
2081 (source
2082 (origin
2083 (method url-fetch)
2084 (uri (string-append "mirror://cpan/authors/id/I/IZ/IZUT/"
2085 "SQL-Tokenizer-" version ".tar.gz"))
2086 (sha256
2087 (base32
2088 "1qa2dfbzdlr5qqdam9yn78z5w3al5r8577x06qan8wv58ay6ka7s"))))
2089 (build-system perl-build-system)
2090 (home-page "https://metacpan.org/release/SQL-Tokenizer")
2091 (synopsis "SQL tokenizer")
2092 (description "SQL::Tokenizer is a tokenizer for SQL queries. It does not
2093 claim to be a parser or query verifier. It just creates sane tokens from a
2094 valid SQL query.")
2095 (license license:perl-license)))
2096
2097 (define-public unixodbc
2098 (package
2099 (name "unixodbc")
2100 (version "2.3.9")
2101 (source (origin
2102 (method url-fetch)
2103 (uri
2104 (string-append
2105 "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-"
2106 version ".tar.gz"))
2107 (sha256
2108 (base32 "01xj65d02i3yjy7p9z08y9jakcs5szmz4rask868n7387nn3x0sj"))))
2109 (build-system gnu-build-system)
2110 (synopsis "Data source abstraction library")
2111 (description "Unixodbc is a library providing an API with which to access
2112 data sources. Data sources include SQL Servers and any software with an ODBC
2113 Driver.")
2114 (license license:lgpl2.1+)
2115 ;; COPYING contains copy of lgpl2.1 - but copyright notices just say "LGPL"
2116 (home-page "http://www.unixodbc.org")))
2117
2118 (define-public unqlite
2119 (package
2120 (name "unqlite")
2121 (version "1.1.6")
2122 (source (origin
2123 (method url-fetch)
2124 ;; Contains bug fixes against the official release, and has an
2125 ;; autotooled build system.
2126 (uri (string-append "https://github.com/aidin36/tocc/releases/"
2127 "download/v1.0.0/"
2128 "unqlite-unofficial-" version ".tar.gz"))
2129 (sha256
2130 (base32
2131 "1sbpvhg15gadq0mpcy16q7k3rkg4b4dicpnn5xifpkpn02sqik3s"))))
2132 (build-system gnu-build-system)
2133 (arguments `(#:tests? #f)) ;No check target
2134 (home-page "https://www.unqlite.org")
2135 (synopsis "In-memory key/value and document store")
2136 (description
2137 "UnQLite is an in-process software library which implements a
2138 self-contained, serverless, zero-configuration, transactional NoSQL
2139 database engine. UnQLite is a document store database similar to
2140 MongoDB, Redis, CouchDB, etc. as well as a standard Key/Value store
2141 similar to BerkeleyDB, LevelDB, etc.")
2142 (license license:bsd-2)))
2143
2144 (define-public redis
2145 (package
2146 (name "redis")
2147 (version "5.0.7")
2148 (source (origin
2149 (method url-fetch)
2150 (uri (string-append "http://download.redis.io/releases/redis-"
2151 version".tar.gz"))
2152 (sha256
2153 (base32
2154 "0ax8sf3vw0yadr41kzc04917scrg5wir1d94zmbz00b8pzm79nv1"))))
2155 (build-system gnu-build-system)
2156 (arguments
2157 '(#:tests? #f ; tests related to master/slave and replication fail
2158 #:phases (modify-phases %standard-phases
2159 (delete 'configure))
2160 #:make-flags `("CC=gcc"
2161 "MALLOC=libc"
2162 "LDFLAGS=-ldl"
2163 ,(string-append "PREFIX="
2164 (assoc-ref %outputs "out")))))
2165 (synopsis "Key-value cache and store")
2166 (description "Redis is an advanced key-value cache and store. Redis
2167 supports many data structures including strings, hashes, lists, sets, sorted
2168 sets, bitmaps and hyperloglogs.")
2169 (home-page "https://redis.io/")
2170 (license license:bsd-3)))
2171
2172 (define-public kyotocabinet
2173 (package
2174 (name "kyotocabinet")
2175 (version "1.2.78")
2176 (source (origin
2177 (method url-fetch)
2178 (uri (string-append "https://fallabs.com/kyotocabinet/pkg/"
2179 "kyotocabinet-" version ".tar.gz"))
2180 (sha256
2181 (base32
2182 "1bxkf9kmcavq9rqridb8mvmrk3hj4447ffi24m2admsbm61n6k29"))))
2183 (build-system gnu-build-system)
2184 (arguments
2185 `(#:configure-flags
2186 (list
2187 "--disable-opt" ;"-march=native". XXX this also turns off -O0.
2188 (string-append "LDFLAGS=-Wl,-rpath="
2189 (assoc-ref %outputs "out") "/lib"))))
2190 (inputs `(("zlib" ,zlib)))
2191 (home-page "https://fallabs.com/kyotocabinet/")
2192 (synopsis
2193 "Kyoto Cabinet is a modern implementation of the DBM database")
2194 (description
2195 "Kyoto Cabinet is a standalone file-based database that supports Hash
2196 and B+ Tree data storage models. It is a fast key-value lightweight
2197 database and supports many programming languages. It is a NoSQL database.")
2198 (license license:gpl3+)))
2199
2200 (define-public tokyocabinet
2201 (package
2202 (name "tokyocabinet")
2203 (version "1.4.48")
2204 (source
2205 (origin
2206 (method url-fetch)
2207 (uri (string-append "http://fallabs.com/tokyocabinet/"
2208 name "-" version ".tar.gz"))
2209 (sha256
2210 (base32
2211 "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0"))))
2212 (build-system gnu-build-system)
2213 (arguments
2214 `(#:configure-flags
2215 (list "--enable-pthread" "--enable-off64" "--enable-fastest"
2216 (string-append "LDFLAGS=-Wl,-rpath="
2217 (assoc-ref %outputs "out") "/lib"))))
2218 (inputs
2219 `(("zlib" ,zlib)))
2220 (home-page "http://fallabs.com/tokyocabinet/")
2221 (synopsis "Tokyo Cabinet is a modern implementation of the DBM database")
2222 (description
2223 "Tokyo Cabinet is a library of routines for managing a database.
2224 The database is a simple data file containing records, each is a pair of a
2225 key and a value. Every key and value is serial bytes with variable length.
2226 Both binary data and character string can be used as a key and a value.
2227 There is neither concept of data tables nor data types. Records are
2228 organized in hash table, B+ tree, or fixed-length array.")
2229 (license license:lgpl2.1+)))
2230
2231 (define-public wiredtiger
2232 (package
2233 (name "wiredtiger")
2234 (version "2.9.1")
2235 (source (origin
2236 (method url-fetch)
2237 (uri (string-append
2238 "http://source.wiredtiger.com/releases/wiredtiger-"
2239 version ".tar.bz2"))
2240 (sha256
2241 (base32
2242 "0krwnb2zfbhvjaskwl875qzd3y626s84zcciq2mxr5c5riw3yh6s"))))
2243 (build-system gnu-build-system)
2244 (arguments
2245 '(#:configure-flags '("--enable-lz4" "--with-builtins=snappy,zlib")
2246 #:phases
2247 (modify-phases %standard-phases
2248 (add-before 'check 'disable-test/fops
2249 (lambda _
2250 ;; XXX: timed out after 3600 seconds of silence
2251 (substitute* "Makefile"
2252 (("test/fops") ""))
2253 #t)))))
2254 (inputs
2255 `(("lz4" ,lz4)
2256 ("zlib" ,zlib)
2257 ("snappy" ,snappy)))
2258 (home-page "http://source.wiredtiger.com/")
2259 (synopsis "NoSQL data engine")
2260 (description
2261 "WiredTiger is an extensible platform for data management. It supports
2262 row-oriented storage (where all columns of a row are stored together),
2263 column-oriented storage (where columns are stored in groups, allowing for
2264 more efficient access and storage of column subsets) and log-structured merge
2265 trees (LSM), for sustained throughput under random insert workloads.")
2266 (license license:gpl3) ; or GPL-2
2267 ;; configure.ac: WiredTiger requires a 64-bit build.
2268 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))))
2269
2270 (define-public wiredtiger-3
2271 (package
2272 (inherit wiredtiger)
2273 (name "wiredtiger")
2274 (version "3.1.0")
2275 (source (origin
2276 (method url-fetch)
2277 (uri (string-append "http://source.wiredtiger.com/releases/wiredtiger-"
2278 version ".tar.bz2"))
2279 (sha256
2280 (base32
2281 "014awypv579ascg4jbx4pndj2wld337m79yyzrzyr7hxrff139jx"))))))
2282
2283 (define-public guile-wiredtiger
2284 (package
2285 (name "guile-wiredtiger")
2286 (version "0.7.0")
2287 (source (origin
2288 (method git-fetch)
2289 (uri (git-reference
2290 (url "https://framagit.org/a-guile-mind/guile-wiredtiger.git")
2291 (commit "340ad4bc2ff4dcc6216a2f5c6f9172ca320ac66b")))
2292 (file-name (string-append name "-" version "-checkout"))
2293 (sha256
2294 (base32
2295 "15j36bvxxzil7qpwlmh1rffqpva3ynvrcpqhhqbj2c9208ayz595"))))
2296 (build-system gnu-build-system)
2297 (arguments
2298 '(#:parallel-tests? #f ;; tests can't be run in parallel, yet.
2299 #:configure-flags
2300 (list (string-append "--with-libwiredtiger-prefix="
2301 (assoc-ref %build-inputs "wiredtiger")))
2302 #:make-flags '("GUILE_AUTO_COMPILE=0")))
2303 (native-inputs
2304 `(("autoconf" ,autoconf)
2305 ("automake" ,automake)
2306 ("pkg-config" ,pkg-config)))
2307 (inputs
2308 `(("wiredtiger" ,wiredtiger-3)
2309 ("guile" ,guile-2.2)))
2310 (propagated-inputs
2311 `(("guile-bytestructures" ,guile-bytestructures)))
2312 (synopsis "WiredTiger bindings for GNU Guile")
2313 (description
2314 "This package provides Guile bindings to the WiredTiger ``NoSQL''
2315 database.")
2316 (home-page "https://framagit.org/a-guile-mind/guile-wiredtiger")
2317 (license license:gpl3+)))
2318
2319 (define-public perl-db-file
2320 (package
2321 (name "perl-db-file")
2322 (version "1.855")
2323 (source
2324 (origin
2325 (method url-fetch)
2326 (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
2327 version ".tar.gz"))
2328 (sha256
2329 (base32 "0q599h7g4jkzks5dxf1zifx9k7l9vif26r2dlgkzxkg6bfif5zyr"))))
2330 (build-system perl-build-system)
2331 (inputs `(("bdb" ,bdb)))
2332 (native-inputs `(("perl-test-pod" ,perl-test-pod)))
2333 (arguments
2334 `(#:phases (modify-phases %standard-phases
2335 (add-before
2336 'configure 'modify-config.in
2337 (lambda* (#:key inputs #:allow-other-keys)
2338 (substitute* "config.in"
2339 (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
2340 #t)))))
2341 (home-page "https://metacpan.org/release/DB_File")
2342 (synopsis "Perl5 access to Berkeley DB version 1.x")
2343 (description
2344 "The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
2345 (license license:perl-license)))
2346
2347 (define-public lmdb
2348 (package
2349 (name "lmdb")
2350 (version "0.9.27")
2351 (source
2352 (origin
2353 (method git-fetch)
2354 (uri (git-reference
2355 (url "https://git.openldap.org/openldap/openldap.git")
2356 (commit (string-append "LMDB_" version))))
2357 (file-name (git-file-name name version))
2358 (sha256
2359 (base32 "09xqqm8yjsf1gv4gd4llal48sms76hfhxadx6rik1j2g5v3d3f1k"))))
2360 (build-system gnu-build-system)
2361 (arguments
2362 `(#:test-target "test"
2363 #:phases
2364 (modify-phases %standard-phases
2365 (replace 'configure
2366 (lambda* (#:key outputs #:allow-other-keys)
2367 (chdir "libraries/liblmdb")
2368 (substitute* "Makefile"
2369 (("/usr/local") (assoc-ref outputs "out")))
2370 #t)))))
2371 (home-page "https://symas.com/lmdb/")
2372 (synopsis "Lightning Memory-Mapped Database library")
2373 (description
2374 "The @dfn{Lightning Memory-Mapped Database} (LMDB) is a high-performance
2375 transactional database. Unlike more complex relational databases, LMDB handles
2376 only key-value pairs (stored as arbitrary byte arrays) and relies on the
2377 underlying operating system for caching and locking, keeping the code small and
2378 simple.
2379 The use of ‘zero-copy’ memory-mapped files combines the persistence of classic
2380 disk-based databases with high read performance that scales linearly over
2381 multiple cores. The size of each database is limited only by the size of the
2382 virtual address space — not physical RAM.")
2383 (license license:openldap2.8)))
2384
2385 (define-public lmdbxx
2386 (package
2387 (name "lmdbxx")
2388 (version "0.9.14.0")
2389 (source
2390 (origin
2391 (method git-fetch)
2392 (uri (git-reference
2393 (url "https://github.com/drycpp/lmdbxx")
2394 (commit version)))
2395 (file-name (git-file-name name version))
2396 (sha256
2397 (base32 "1jmb9wg2iqag6ps3z71bh72ymbcjrb6clwlkgrqf1sy80qwvlsn6"))))
2398 (arguments
2399 `(#:make-flags
2400 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2401 #:phases
2402 (modify-phases %standard-phases
2403 (delete 'configure))))
2404 (build-system gnu-build-system)
2405 (inputs `(("lmdb" ,lmdb)))
2406 (home-page "http://lmdbxx.sourceforge.net")
2407 (synopsis "C++11 wrapper for the LMDB embedded B+ tree database library")
2408 (description "@code{lmdbxx} is a comprehensive @code{C++} wrapper for the
2409 @code{LMDB} embedded database library, offering both an error-checked
2410 procedural interface and an object-oriented resource interface with RAII
2411 semantics.")
2412 (license license:unlicense)))
2413
2414 (define-public libpqxx
2415 (package
2416 (name "libpqxx")
2417 (version "4.0.1")
2418 (source (origin
2419 (method url-fetch)
2420 (uri (string-append
2421 "http://pqxx.org/download/software/libpqxx/"
2422 name "-" version ".tar.gz"))
2423 (sha256
2424 (base32
2425 "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09"))))
2426 (build-system gnu-build-system)
2427 (native-inputs
2428 `(("python" ,python-2)))
2429 (inputs `(("postgresql" ,postgresql)))
2430 (arguments
2431 `(#:tests? #f ; # FAIL: 1
2432 #:phases
2433 (modify-phases %standard-phases
2434 (add-before 'configure 'fix-sed-command
2435 (lambda _
2436 ;; Newer sed versions error out if double brackets are not used.
2437 (substitute* "configure"
2438 (("\\[:space:\\]") "[[:space:]]"))
2439 #t)))))
2440 (synopsis "C++ connector for PostgreSQL")
2441 (description
2442 "Libpqxx is a C++ library to enable user programs to communicate with the
2443 PostgreSQL database back-end. The database back-end can be local or it may be
2444 on another machine, accessed via TCP/IP.")
2445 (home-page "http://pqxx.org/")
2446 (license license:bsd-3)))
2447
2448 (define-public python-peewee
2449 (package
2450 (name "python-peewee")
2451 (version "3.14.0")
2452 (source
2453 (origin
2454 (method url-fetch)
2455 (uri (pypi-uri "peewee" version))
2456 (sha256
2457 (base32 "1yl49gxrg0c2x3n3r60z3lixw9am8b61s0477l9vjabhhx1yziar"))))
2458 (build-system python-build-system)
2459 (arguments
2460 `(#:tests? #f)) ; fails to import test data
2461 (inputs
2462 `(("sqlite" ,sqlite)))
2463 (native-inputs
2464 `(("python-cython" ,python-cython)))
2465 (home-page "https://github.com/coleifer/peewee/")
2466 (synopsis "Small object-relational mapping utility")
2467 (description
2468 "Peewee is a simple and small ORM (object-relation mapping) tool. Peewee
2469 handles converting between pythonic values and those used by databases, so you
2470 can use Python types in your code without having to worry. It has built-in
2471 support for sqlite, mysql and postgresql. If you already have a database, you
2472 can autogenerate peewee models using @code{pwiz}, a model generator.")
2473 (license license:expat)))
2474
2475 (define-public python2-peewee
2476 (package-with-python2 python-peewee))
2477
2478 (define-public python-tortoise-orm
2479 (package
2480 (name "python-tortoise-orm")
2481 (version "0.16.7")
2482 (source
2483 (origin
2484 (method url-fetch)
2485 (uri (pypi-uri "tortoise-orm" version))
2486 (sha256
2487 (base32
2488 "0wr7p4v0b16ypm9fcpwpl99kf491m6w3jkd13xcsgq13fy73fbqc"))))
2489 (build-system python-build-system)
2490 ;; Disable tests for now. They pull in a lot of dependencies.
2491 (arguments `(#:tests? #f))
2492 (native-inputs
2493 `(("python-asynctest" ,python-asynctest)
2494 ("python-nose2" ,python-nose2)))
2495 (propagated-inputs
2496 `(("python-aiosqlite" ,python-aiosqlite)
2497 ("python-pypika" ,python-pypika)
2498 ("python-ciso8601" ,python-ciso8601)
2499 ("python-typing-extensions"
2500 ,python-typing-extensions)))
2501 (home-page
2502 "https://github.com/tortoise/tortoise-orm")
2503 (synopsis
2504 "Easy async ORM for python, built with relations in mind")
2505 (description
2506 "Tortoise ORM is an easy-to-use asyncio ORM (Object Relational Mapper)
2507 inspired by Django. Tortoise ORM was build with relations in mind and
2508 admiration for the excellent and popular Django ORM. It’s engraved in its
2509 design that you are working not with just tables, you work with relational
2510 data.")
2511 (license license:asl2.0)))
2512
2513 (define-public sqlcipher
2514 (package
2515 (name "sqlcipher")
2516 (version "3.4.2")
2517 (source
2518 (origin
2519 (method url-fetch)
2520 (uri (string-append "https://github.com/sqlcipher/" name
2521 "/archive/v" version ".tar.gz"))
2522 (sha256
2523 (base32 "1nxarwbci8jx99f1d0y1ivxcv25s78l1p7q6qy28lkpkcx8pm2b9"))
2524 (file-name (string-append name "-" version ".tar.gz"))))
2525 (build-system gnu-build-system)
2526 (inputs
2527 `(("libcrypto" ,openssl)
2528 ("libtcl8.6" ,tcl))) ; required for running the tests
2529 (native-inputs
2530 `(("tcl" ,tcl)))
2531 (arguments
2532 '(#:configure-flags
2533 '("--enable-tempstore=yes"
2534 "CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_ENABLE_FTS3"
2535 "LDFLAGS=-lcrypto -ltcl8.6"
2536 "--disable-tcl")
2537 ;; tests cannot be run from the Makefile
2538 ;; see: <https://github.com/sqlcipher/sqlcipher/issues/172>
2539 #:test-target "testfixture"
2540 #:phases
2541 (modify-phases %standard-phases
2542 (add-before 'check 'build-test-runner
2543 (assoc-ref %standard-phases 'check))
2544 (replace 'check
2545 (lambda _
2546 (invoke "./testfixture" "test/crypto.test"))))))
2547 (home-page "https://www.zetetic.net/sqlcipher/")
2548 (synopsis
2549 "Library providing transparent encryption of SQLite database files")
2550 (description "SQLCipher is an implementation of SQLite, extended to
2551 provide transparent 256-bit AES encryption of database files. Pages are
2552 encrypted before being written to disk and are decrypted when read back. It’s
2553 well suited for protecting embedded application databases and for mobile
2554 development.")
2555 ;; The source files
2556 ;; src/{crypto.c,crypto_impl.c,crypto.h,crypto_cc.c,crypto_libtomcrypt.c},
2557 ;; src/{crypto_openssl.c,sqlcipher.h}, tool/crypto-speedtest.tcl,
2558 ;; test/crypto.test are licensed under a 3-clause BSD license. All other
2559 ;; source files are in the public domain.
2560 (license (list license:public-domain license:bsd-3))))
2561
2562 (define-public python-pyodbc-c
2563 (package
2564 (name "python-pyodbc-c")
2565 (version "3.1.4")
2566 (source
2567 (origin
2568 (method url-fetch)
2569 (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
2570 "archive.tar.gz?ref=v" version))
2571 (sha256
2572 (base32
2573 "05aq2297k779xidmxcwkrrxjvj1bh2q7d9a1rcjv6zr15y764ga9"))
2574 (file-name (string-append name "-" version ".tar.gz"))))
2575 (build-system python-build-system)
2576 (inputs
2577 `(("unixodbc" ,unixodbc)))
2578 (arguments
2579 `(;; No unit tests exist.
2580 #:tests? #f))
2581 (home-page "https://github.com/mkleehammer/pyodbc")
2582 (synopsis "Python ODBC Library")
2583 (description "@code{python-pyodbc-c} provides a Python DB-API driver
2584 for ODBC.")
2585 (license (license:x11-style "file://LICENSE.TXT"))))
2586
2587 (define-public python2-pyodbc-c
2588 (package-with-python2 python-pyodbc-c))
2589
2590 (define-public python-pyodbc
2591 (package
2592 (name "python-pyodbc")
2593 (version "4.0.30")
2594 (source
2595 (origin
2596 (method url-fetch)
2597 (uri (pypi-uri "pyodbc" version))
2598 (sha256
2599 (base32 "0skjpraar6hcwsy82612bpj8nw016ncyvvq88j5syrikxgp5saw5"))
2600 (file-name (string-append name "-" version ".tar.gz"))))
2601 (build-system python-build-system)
2602 (inputs
2603 `(("unixodbc" ,unixodbc)))
2604 (arguments
2605 `(#:tests? #f)) ; no unit tests exist
2606 (home-page "https://github.com/mkleehammer/pyodbc")
2607 (synopsis "Python ODBC Library")
2608 (description "@code{python-pyodbc} provides a Python DB-API driver
2609 for ODBC.")
2610 (license (license:x11-style "file:///LICENSE.TXT"))))
2611
2612 (define-public python2-pyodbc
2613 (package-with-python2 python-pyodbc))
2614
2615 (define-public mdbtools
2616 (package
2617 (name "mdbtools")
2618 (version "0.7.1")
2619 (source
2620 (origin
2621 (method git-fetch)
2622 (uri (git-reference
2623 (url "https://github.com/brianb/mdbtools")
2624 (commit version)))
2625 (file-name (git-file-name name version))
2626 (sha256
2627 (base32
2628 "0gwcpp9y09xhs21g7my2fs8ncb8i6ahlyixcx8jd3q97jbzj441l"))))
2629 (build-system gnu-build-system)
2630 (inputs
2631 `(("glib" ,glib)))
2632 (native-inputs
2633 `(("autoconf" ,autoconf)
2634 ("automake" ,automake)
2635 ("libtool" ,libtool)
2636 ("pkg-config" ,pkg-config)
2637 ("txt2man" ,txt2man)
2638 ("which" ,which)))
2639 (home-page "http://mdbtools.sourceforge.net/")
2640 (synopsis "Read Microsoft Access databases")
2641 (description "MDB Tools is a set of tools and applications to read the
2642 proprietary MDB file format used in Microsoft's Access database package. This
2643 includes programs to export schema and data from Microsoft's Access database
2644 file format to other databases such as MySQL, Oracle, Sybase, PostgreSQL,
2645 etc., and an SQL engine for performing simple SQL queries.")
2646 (license (list license:lgpl2.0
2647 license:gpl2+))))
2648
2649 (define-public python-lmdb
2650 (package
2651 (name "python-lmdb")
2652 (version "1.0.0")
2653 (source (origin
2654 (method url-fetch)
2655 (uri (pypi-uri "lmdb" version))
2656 (sha256
2657 (base32
2658 "1di1gj2agbxwqqwrpk4w58dpfah0kl10ha20s63dlqdd1bgzydj1"))
2659 (modules '((guix build utils)))
2660 (snippet
2661 ;; Delete bundled lmdb source files.
2662 '(begin
2663 (for-each delete-file (list "lib/lmdb.h"
2664 "lib/mdb.c"
2665 "lib/midl.c"
2666 "lib/midl.h"))
2667 #t))))
2668 (build-system python-build-system)
2669 (inputs
2670 `(("lmdb" ,lmdb)))
2671 (arguments
2672 `(#:phases
2673 (modify-phases %standard-phases
2674 (add-before 'build 'use-system-lmdb
2675 (lambda* (#:key inputs #:allow-other-keys)
2676 (let ((lmdb (assoc-ref inputs "lmdb")))
2677 (setenv "LMDB_PURE" "set") ; don't apply env-copy-txn.patch
2678 (setenv "LMDB_FORCE_SYSTEM" "set")
2679 (setenv "LMDB_INCLUDEDIR" (string-append lmdb "/include"))
2680 (setenv "LMDB_LIBDIR" (string-append lmdb "/lib"))
2681 #t))))
2682 ;; Tests fail with: ‘lmdb.tool: Please specify environment (--env)’.
2683 #:tests? #f))
2684 (home-page "https://github.com/dw/py-lmdb")
2685 (synopsis "Python binding for the ‘Lightning’ database (LMDB)")
2686 (description
2687 "python-lmdb or py-lmdb is a Python binding for the @dfn{Lightning
2688 Memory-Mapped Database} (LMDB), a high-performance key-value store.")
2689 (license
2690 (list license:openldap2.8
2691 ;; ‘lib/win32/inttypes.h’ and ‘lib/win32-stdint/stdint.h’ are BSD-3,
2692 ;; but not actually needed on platforms currently supported by Guix.
2693 license:bsd-3))))
2694
2695 (define-public python-orator
2696 (package
2697 (name "python-orator")
2698 (version "0.9.9")
2699 (source (origin
2700 (method url-fetch)
2701 (uri (pypi-uri "orator" version))
2702 (sha256
2703 (base32
2704 "0mbgybz63ryhr9p1f4glnls5c57jp6il3dw0kf97f3pj80687rvg"))))
2705 (build-system python-build-system)
2706 ;; FIXME: Tests are not distributed with PyPI, and the repository
2707 ;; does not contain setup.py. How to test?
2708 (arguments '(#:tests? #f))
2709 (propagated-inputs
2710 `(("python-backpack" ,python-backpack)
2711 ("python-blinker" ,python-blinker)
2712 ("python-cleo" ,python-cleo)
2713 ("python-faker" ,python-faker)
2714 ("python-inflection" ,python-inflection)
2715 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
2716 ("python-pendulum" ,python-pendulum)
2717 ("python-pyaml" ,python-pyaml)
2718 ("python-pygments" ,python-pygments)
2719 ("python-pyyaml" ,python-pyyaml)
2720 ("python-simplejson" ,python-simplejson)
2721 ("python-six" ,python-six)
2722 ("python-wrapt" ,python-wrapt)))
2723 (home-page "https://orator-orm.com/")
2724 (synopsis "ActiveRecord ORM for Python")
2725 (description
2726 "Orator provides a simple ActiveRecord-like Object Relational Mapping
2727 implementation for Python.")
2728 (license license:expat)
2729 (properties `((python2-variant . ,(delay python2-orator))))))
2730
2731 (define-public python2-orator
2732 (package-with-python2 (strip-python2-variant python-orator)))
2733
2734 (define-public virtuoso-ose
2735 (package
2736 (name "virtuoso-ose")
2737 (version "7.2.5")
2738 (source
2739 (origin
2740 (method url-fetch)
2741 (uri (string-append
2742 "https://github.com/openlink/virtuoso-opensource/releases/"
2743 "download/v" version "/virtuoso-opensource-" version ".tar.gz"))
2744 (sha256
2745 (base32 "0r1xakclkfi69pzh8z2k16z3x0m49pxp764icj0ad4w4bb97fr42"))))
2746 (build-system gnu-build-system)
2747 (arguments
2748 `(#:tests? #f ; Tests require a network connection.
2749 ;; TODO: Removing the libsrc/zlib source directory breaks the build.
2750 ;; This indicates that the internal zlib code may still be used.
2751 #:configure-flags '("--without-internal-zlib"
2752 "--with-readline"
2753 "--enable-static=no")
2754 #:phases
2755 (modify-phases %standard-phases
2756 ;; Even with "--enable-static=no", "libvirtuoso-t.a" is left in
2757 ;; the build output. The following phase removes it.
2758 (add-after 'install 'remove-static-libs
2759 (lambda* (#:key outputs #:allow-other-keys)
2760 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
2761 (for-each (lambda (file)
2762 (delete-file (string-append lib "/" file)))
2763 '("libvirtuoso-t.a"
2764 "libvirtuoso-t.la"))))))))
2765 (inputs
2766 `(("openssl" ,openssl-1.0)
2767 ("net-tools" ,net-tools)
2768 ("readline" ,readline)
2769 ("zlib" ,zlib)))
2770 (home-page "http://vos.openlinksw.com/owiki/wiki/VOS/")
2771 (synopsis "Multi-model database system")
2772 (description "Virtuoso is a scalable cross-platform server that combines
2773 relational, graph, and document data management with web application server
2774 and web services platform functionality.")
2775 ;; configure: error: ... can only be build on 64bit platforms
2776 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))
2777 (license license:gpl2)))
2778
2779 (define-public python-ccm
2780 (package
2781 (name "python-ccm")
2782 (version "2.1.6")
2783 (source
2784 (origin
2785 (method url-fetch)
2786 (uri (pypi-uri "ccm" version))
2787 (sha256
2788 (base32
2789 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
2790 (build-system python-build-system)
2791 (propagated-inputs
2792 `(("python-pyyaml" ,python-pyyaml)
2793 ;; Not listed in setup.py, but used in ccmlib/node.py for full
2794 ;; functionality
2795 ("python-psutil" ,python-psutil)
2796 ("python-six" ,python-six)))
2797 (home-page "https://github.com/pcmanus/ccm")
2798 (synopsis "Cassandra Cluster Manager for Apache Cassandra clusters on
2799 localhost")
2800 (description "Cassandra Cluster Manager is a development tool for testing
2801 local Cassandra clusters. It creates, launches and removes Cassandra clusters
2802 on localhost.")
2803 (license license:asl2.0)))
2804
2805 (define-public python2-ccm
2806 (package-with-python2 python-ccm))
2807
2808 (define-public python2-pysqlite
2809 (package
2810 (name "python2-pysqlite")
2811 (version "2.8.3")
2812 (source
2813 (origin
2814 (method url-fetch)
2815 (uri (pypi-uri "pysqlite" version))
2816 (sha256
2817 (base32
2818 "1424gwq9sil2ffmnizk60q36vydkv8rxs6m7xs987kz8cdc37lqp"))))
2819 (build-system python-build-system)
2820 (inputs
2821 `(("sqlite" ,sqlite)))
2822 (arguments
2823 `(#:python ,python-2 ; incompatible with Python 3
2824 #:tests? #f)) ; no test target
2825 (home-page "https://github.com/ghaering/pysqlite")
2826 (synopsis "SQLite bindings for Python")
2827 (description
2828 "Pysqlite provides SQLite bindings for Python that comply to the
2829 Database API 2.0T.")
2830 (license license:zlib)))
2831
2832 (define-public python-sqlalchemy
2833 (package
2834 (name "python-sqlalchemy")
2835 (version "1.3.20")
2836 (source
2837 (origin
2838 (method url-fetch)
2839 (uri (pypi-uri "SQLAlchemy" version))
2840 (sha256
2841 (base32 "18b9am7bsqc4nj3d2h5r93i002apczxfvpfpcqbd6f0385zmrwnj"))))
2842 (build-system python-build-system)
2843 (native-inputs
2844 `(("python-cython" ,python-cython) ; for C extensions
2845 ("python-pytest" ,python-pytest)
2846 ("python-mock" ,python-mock))) ; for tests
2847 (arguments
2848 `(#:phases
2849 (modify-phases %standard-phases
2850 (replace 'check
2851 (lambda _ (invoke "py.test"))))))
2852 (home-page "https://www.sqlalchemy.org")
2853 (synopsis "Database abstraction library")
2854 (description
2855 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
2856 gives application developers the full power and flexibility of SQL. It
2857 provides a full suite of well known enterprise-level persistence patterns,
2858 designed for efficient and high-performing database access, adapted into a
2859 simple and Pythonic domain language.")
2860 (license license:x11)))
2861
2862 (define-public python2-sqlalchemy
2863 (package-with-python2 python-sqlalchemy))
2864
2865 (define-public python-sqlalchemy-utils
2866 (package
2867 (name "python-sqlalchemy-utils")
2868 (version "0.32.21")
2869 (source
2870 (origin
2871 (method url-fetch)
2872 (uri (pypi-uri "SQLAlchemy-Utils" version))
2873 (sha256
2874 (base32
2875 "1myn71dn8j74xglyh46f12sh8ywb7j0j732rzwq70kvwwnq32m73"))))
2876 (build-system python-build-system)
2877 (arguments
2878 '(#:tests? #f)) ; FIXME: Many tests require a running database server.
2879 ;; #:phases
2880 ;; (modify-phases %standard-phases
2881 ;; (replace 'check
2882 ;; (lambda _
2883 ;; (zero? (system* "py.test" "sqlalchemy_utils" "tests")))))
2884 (propagated-inputs
2885 `(("python-six" ,python-six)
2886 ("python-sqlalchemy" ,python-sqlalchemy)))
2887 (native-inputs
2888 `(("python-dateutil" ,python-dateutil)
2889 ("python-flexmock" ,python-flexmock)
2890 ("python-psycopg2" ,python-psycopg2)
2891 ("python-pytest" ,python-pytest)
2892 ("python-pytz" ,python-pytz)))
2893 (home-page "https://github.com/kvesteri/sqlalchemy-utils")
2894 (synopsis "Various utility functions for SQLAlchemy")
2895 (description
2896 "SQLAlchemy-utils provides various utility functions and custom data types
2897 for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
2898
2899 You might also want to install the following optional dependencies:
2900 @enumerate
2901 @item @code{python-passlib}
2902 @item @code{python-babel}
2903 @item @code{python-cryptography}
2904 @item @code{python-pytz}
2905 @item @code{python-psycopg2}
2906 @item @code{python-furl}
2907 @item @code{python-flask-babel}
2908 @end enumerate
2909 ")
2910 (license license:bsd-3)))
2911
2912 (define-public python2-sqlalchemy-utils
2913 (package-with-python2 python-sqlalchemy-utils))
2914
2915 (define-public python-alchemy-mock
2916 (package
2917 (name "python-alchemy-mock")
2918 (version "0.4.3")
2919 (home-page "https://github.com/miki725/alchemy-mock")
2920 (source (origin
2921 (method url-fetch)
2922 (uri (pypi-uri "alchemy-mock" version))
2923 (sha256
2924 (base32
2925 "0ylxygl3bcdapzz529n8wgk7vx9gjwb3ism564ypkpd7dbsw653r"))))
2926 (build-system python-build-system)
2927 (arguments
2928 '(#:phases (modify-phases %standard-phases
2929 (replace 'check
2930 (lambda _
2931 ;; Create pytest.ini that adds doctest options to
2932 ;; prevent test failure. Taken from tox.ini.
2933 (call-with-output-file "pytest.ini"
2934 (lambda (port)
2935 (format port "[pytest]
2936 doctest_optionflags=IGNORE_EXCEPTION_DETAIL
2937 ")))
2938 (invoke "pytest" "-vv" "--doctest-modules"
2939 "alchemy_mock/"))))))
2940 (native-inputs
2941 `(("python-mock" ,python-mock)
2942 ("python-pytest" ,python-pytest)))
2943 (propagated-inputs
2944 `(("python-six" ,python-six)
2945 ("python-sqlalchemy" ,python-sqlalchemy)))
2946 (synopsis "Mock helpers for SQLAlchemy")
2947 (description
2948 "This package provides mock helpers for SQLAlchemy that makes it easy
2949 to mock an SQLAlchemy session while preserving the ability to do asserts.
2950
2951 Normally Normally SQLAlchemy's expressions cannot be easily compared as
2952 comparison on binary expression produces yet another binary expression, but
2953 this library provides functions to facilitate such comparisons.")
2954 (license license:expat)))
2955
2956 (define-public python-alembic
2957 (package
2958 (name "python-alembic")
2959 (version "1.4.3")
2960 (source
2961 (origin
2962 (method url-fetch)
2963 (uri (pypi-uri "alembic" version))
2964 (sha256
2965 (base32 "0if2dgb088clk738p26bwk50735h6jpd2kacdgc5capv2hiz6d2k"))))
2966 (build-system python-build-system)
2967 (arguments
2968 '(#:phases (modify-phases %standard-phases
2969 (replace 'check
2970 (lambda _
2971 (invoke "pytest" "-vv"))))))
2972 (native-inputs
2973 `(("python-mock" ,python-mock)
2974 ("python-pytest-cov" ,python-pytest-cov)))
2975 (propagated-inputs
2976 `(("python-dateutil" ,python-dateutil)
2977 ("python-sqlalchemy" ,python-sqlalchemy)
2978 ("python-mako" ,python-mako)
2979 ("python-editor" ,python-editor)))
2980 (home-page "https://bitbucket.org/zzzeek/alembic")
2981 (synopsis "Database migration tool for SQLAlchemy")
2982 (description
2983 "Alembic is a lightweight database migration tool for usage with the
2984 SQLAlchemy Database Toolkit for Python.")
2985 (license license:expat)))
2986
2987 (define-public python2-alembic
2988 (package-with-python2 python-alembic))
2989
2990 (define-public python-pickleshare
2991 (package
2992 (name "python-pickleshare")
2993 (version "0.7.5")
2994 (source
2995 (origin
2996 (method url-fetch)
2997 (uri (pypi-uri "pickleshare" version))
2998 (sha256
2999 (base32 "1jmghg3c53yp1i8cm6pcrm280ayi8621rwyav9fac7awjr3kss47"))))
3000 (build-system python-build-system)
3001 (arguments
3002 `(#:phases (modify-phases %standard-phases
3003 (replace 'check
3004 (lambda _
3005 (invoke "pytest"))))))
3006 (native-inputs
3007 `(("python-pytest" ,python-pytest)))
3008 (home-page "https://github.com/vivainio/pickleshare")
3009 (synopsis "Tiny key value database with concurrency support")
3010 (description
3011 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
3012 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
3013 shelve, many processes can access the database simultaneously. Changing a
3014 value in database is immediately visible to other processes accessing the same
3015 database. Concurrency is possible because the values are stored in separate
3016 files. Hence the “database” is a directory where all files are governed by
3017 PickleShare.")
3018 (properties `((python2-variant . ,(delay python2-pickleshare))))
3019 (license license:expat)))
3020
3021 (define-public python2-pickleshare
3022 (let ((pickleshare (package-with-python2
3023 (strip-python2-variant python-pickleshare))))
3024 (package (inherit pickleshare)
3025 (propagated-inputs `(("python2-pathlib2" ,python2-pathlib2)
3026 ,@(package-propagated-inputs pickleshare))))))
3027
3028 (define-public python-apsw
3029 (package
3030 (name "python-apsw")
3031 (version "3.31.1-r1")
3032 (source
3033 (origin
3034 (method url-fetch)
3035 (uri (string-append "https://github.com/rogerbinns/apsw/releases"
3036 "/download/" version "/apsw-" version ".zip"))
3037 (sha256
3038 (base32
3039 "1gap5lr6c7bp134nzvfwr693i6d0fqyaysg3ms2cayjldv616yfx"))))
3040 (build-system python-build-system)
3041 (native-inputs
3042 `(("unzip" ,unzip)))
3043 (inputs
3044 `(("sqlite" ,sqlite)))
3045 (arguments
3046 `(#:phases
3047 (modify-phases %standard-phases
3048 (replace 'build
3049 (lambda _
3050 (invoke "python" "setup.py" "build" "--enable-all-extensions")
3051 #t))
3052 (add-after 'build 'build-test-helper
3053 (lambda _
3054 (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
3055 "-I." "-Isqlite3" "src/testextension.c")
3056 #t))
3057 (replace 'check
3058 (lambda* (#:key inputs outputs #:allow-other-keys)
3059 (add-installed-pythonpath inputs outputs)
3060 (invoke "python" "setup.py" "test")
3061 #t)))))
3062 (home-page "https://github.com/rogerbinns/apsw/")
3063 (synopsis "Another Python SQLite Wrapper")
3064 (description "APSW is a Python wrapper for the SQLite
3065 embedded relational database engine. In contrast to other wrappers such as
3066 pysqlite it focuses on being a minimal layer over SQLite attempting just to
3067 translate the complete SQLite API into Python.")
3068 (license license:zlib)))
3069
3070 (define-public python2-apsw
3071 (package-with-python2 python-apsw))
3072
3073 (define-public python-aiosqlite
3074 (package
3075 (name "python-aiosqlite")
3076 (version "0.12.0")
3077 (source
3078 (origin
3079 (method url-fetch)
3080 (uri (pypi-uri "aiosqlite" version))
3081 (sha256
3082 (base32
3083 "1w8248yz85xyzvvh4jaxnc59fqil45aka6h82kn1rcih4rjxbnn1"))))
3084 (build-system python-build-system)
3085 (native-inputs
3086 `(("python-aiounittest" ,python-aiounittest)))
3087 (home-page "https://github.com/jreese/aiosqlite")
3088 (synopsis
3089 "Asyncio bridge for sqlite3")
3090 (description
3091 "The package aiosqlite replicates the standard sqlite3 module, but with
3092 async versions of all the standard connection and cursor methods, and context
3093 managers for automatically closing connections.")
3094 (license license:expat)))
3095
3096 (define-public python2-neo4j-driver
3097 (package
3098 (name "python2-neo4j-driver")
3099 ;; NOTE: When upgrading to 1.5.0, please add a python3 variant.
3100 (version "1.4.0")
3101 (source (origin
3102 (method url-fetch)
3103 (uri (pypi-uri "neo4j-driver" version))
3104 (sha256
3105 (base32
3106 "011r1vh182p8mm83d8dz9rfnc3l7rf7fd00cyrbyfzi71jmc4g98"))))
3107 (build-system python-build-system)
3108 (arguments
3109 `(#:python ,python-2))
3110 (home-page "https://neo4j.com/developer/python/")
3111 (synopsis "Neo4j driver code written in Python")
3112 (description "This package provides the Neo4j Python driver that connects
3113 to the database using Neo4j's binary protocol. It aims to be minimal, while
3114 being idiomatic to Python.")
3115 (license license:asl2.0)))
3116
3117 (define-public python2-py2neo
3118 (package
3119 (name "python2-py2neo")
3120 (version "3.1.2")
3121 (source (origin
3122 (method url-fetch)
3123 (uri (pypi-uri "py2neo" version))
3124 (sha256
3125 (base32
3126 "1f1q95vqcvlc3nsc33p841swnjdcjazddlq2dzi3qfnjqjrajxw1"))))
3127 (build-system python-build-system)
3128 (arguments
3129 `(#:python ,python-2))
3130 (home-page "https://py2neo.org")
3131 (synopsis "Library and toolkit for working with Neo4j in Python")
3132 (description "This package provides a client library and toolkit for
3133 working with Neo4j from within Python applications and from the command
3134 line. The core library has no external dependencies and has been carefully
3135 designed to be easy and intuitive to use.")
3136 (license license:asl2.0)))
3137
3138 (define-public python-psycopg2
3139 (package
3140 (name "python-psycopg2")
3141 (version "2.8.6")
3142 (source
3143 (origin
3144 (method url-fetch)
3145 (uri (pypi-uri "psycopg2" version))
3146 (sha256
3147 (base32 "0hzmk6b1hb5riqkljr5xics6p4zbvmis6knbczb7zhq7273zc8zv"))))
3148 (build-system python-build-system)
3149 (arguments
3150 ;; Tests would require a postgresql database "psycopg2_test"
3151 ;; and a running postgresql database management service.
3152 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
3153 (inputs
3154 `(("postgresql" ,postgresql))) ; libpq
3155 (home-page "http://initd.org/psycopg/")
3156 (synopsis "Python PostgreSQL adapter")
3157 (description
3158 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API
3159 2.0.")
3160 (license license:lgpl3+)))
3161
3162 (define-public python2-psycopg2
3163 (package-with-python2 python-psycopg2))
3164
3165 (define-public python-sadisplay
3166 (package
3167 (name "python-sadisplay")
3168 (version "0.4.8")
3169 (source
3170 (origin
3171 (method url-fetch)
3172 (uri (pypi-uri "sadisplay" version))
3173 (sha256
3174 (base32
3175 "01d9lxhmgpb68gy8rd6zj6fcwp84n2qq210n1qsk3qbsir79bzh4"))))
3176 (build-system python-build-system)
3177 (propagated-inputs
3178 `(("python-sqlalchemy" ,python-sqlalchemy)))
3179 (native-inputs
3180 ;; For tests.
3181 `(("python-nose" ,python-nose)))
3182 (home-page "https://bitbucket.org/estin/sadisplay")
3183 (synopsis "SQLAlchemy schema displayer")
3184 (description "This package provides a program to build Entity
3185 Relationship diagrams from a SQLAlchemy model (or directly from the
3186 database).")
3187 (license license:bsd-3)))
3188
3189 (define-public python2-sadisplay
3190 (package-with-python2 python-sadisplay))
3191
3192 (define-public yoyo-migrations
3193 (package
3194 (name "yoyo-migrations")
3195 (version "7.2.0")
3196 (source
3197 (origin
3198 ;; We use the upstream repository, as the tests are not included in the
3199 ;; PyPI releases.
3200 (method hg-fetch)
3201 (uri (hg-reference
3202 (url "https://hg.sr.ht/~olly/yoyo")
3203 (changeset (string-append "v" version "-release"))))
3204 (file-name (string-append name "-" version "-checkout"))
3205 (sha256
3206 (base32 "0q2z9bgdj3wyix7yvqsayfs21grp5av8ilh411lgmjhigszkvhcq"))))
3207 (build-system python-build-system)
3208 (arguments
3209 ;; XXX: Tests require a connection to some pgsql database and psycopg
3210 ;; fails to connect to it.
3211 '(#:tests? #f))
3212 (propagated-inputs
3213 `(("python-sqlparse" ,python-sqlparse)
3214 ("python-tabulate" ,python-tabulate)))
3215 (home-page "https://ollycope.com/software/yoyo/latest/")
3216 (synopsis "Database migrations with SQL")
3217 (description
3218 "Yoyo is a database schema migration tool. Migrations are written as SQL
3219 files or Python scripts that define a list of migration steps.")
3220 (license license:asl2.0)))
3221
3222 (define-public python-mysqlclient
3223 (package
3224 (name "python-mysqlclient")
3225 (version "2.0.1")
3226 (source
3227 (origin
3228 (method url-fetch)
3229 (uri (pypi-uri "mysqlclient" version))
3230 (sha256
3231 (base32
3232 "1rf5l8hazs3v18hmcrm90z3hi9wxv553ipwd5l6kj8j7l6p7abzv"))))
3233 (build-system python-build-system)
3234 (arguments '(#:tests? #f)) ;XXX: requires a live database
3235 (inputs
3236 `(("mysql-dev" ,mariadb "dev")))
3237 (home-page "https://github.com/PyMySQL/mysqlclient-python")
3238 (synopsis "MySQLdb is an interface to the popular MySQL database server for Python")
3239 (description "MySQLdb is an interface to the popular MySQL database server
3240 for Python. The design goals are:
3241 @enumerate
3242 @item Compliance with Python database API version 2.0 [PEP-0249],
3243 @item Thread-safety,
3244 @item Thread-friendliness (threads will not block each other).
3245 @end enumerate")
3246 (license license:gpl2)))
3247
3248 (define-public python-hiredis
3249 (package
3250 (name "python-hiredis")
3251 (version "0.2.0")
3252 (source
3253 (origin
3254 (method url-fetch)
3255 (uri (pypi-uri "hiredis" version))
3256 (sha256
3257 (base32
3258 "1dfm2k9l9zar9nw9fwmm74zrgraxdxs04vx9li56fjcf289qx5fa"))))
3259 (build-system python-build-system)
3260 (arguments
3261 ;; no tests
3262 `(#:tests? #f))
3263 (home-page "https://github.com/redis/hiredis-py")
3264 (synopsis "Python extension that wraps protocol parsing code in hiredis")
3265 (description "Python-hiredis is a python extension that wraps protocol
3266 parsing code in hiredis. It primarily speeds up parsing of multi bulk replies.")
3267 (license license:bsd-3)))
3268
3269 (define-public python2-hiredis
3270 (package-with-python2 python-hiredis))
3271
3272 (define-public python-fakeredis
3273 (package
3274 (name "python-fakeredis")
3275 (version "1.2.1")
3276 (source
3277 (origin
3278 (method url-fetch)
3279 (uri (pypi-uri "fakeredis" version))
3280 (sha256
3281 (base32
3282 "1s12mn4q4hz7402139khn9fx56kibj7nn0d6w81hn0zs07b90wpc"))))
3283 (build-system python-build-system)
3284 (arguments
3285 ;; no tests
3286 `(#:tests? #f))
3287 (propagated-inputs
3288 `(("python-sortedcontainers" ,python-sortedcontainers)))
3289 (home-page "https://github.com/jamesls/fakeredis")
3290 (synopsis "Fake implementation of redis API for testing purposes")
3291 (description
3292 "Fakeredis is a pure-Python implementation of the redis-py Python client
3293 that simulates talking to a redis server. It was created for a single purpose:
3294 to write unit tests.
3295
3296 Setting up redis is not hard, but one often wants to write unit tests that don't
3297 talk to an external server such as redis. This module can be used as a
3298 reasonable substitute.")
3299 (license license:bsd-3)))
3300
3301 (define-public python2-fakeredis
3302 (package-with-python2 python-fakeredis))
3303
3304 (define-public python-redis
3305 (package
3306 (name "python-redis")
3307 (version "3.5.3")
3308 (source
3309 (origin
3310 (method url-fetch)
3311 (uri (pypi-uri "redis" version))
3312 (sha256
3313 (base32 "18h5b87g15x3j6pb1h2q27ri37p2qpvc9n2wgn5yl3b6m3y0qzhf"))))
3314 (build-system python-build-system)
3315 ;; Tests require a running Redis server.
3316 (arguments '(#:tests? #f))
3317 ;; As long as we are not running test, we do not need this input :-)
3318 ;;(native-inputs
3319 ;; `(("python-pytest" ,python-pytest)))
3320 (home-page "https://github.com/andymccurdy/redis-py")
3321 (synopsis "Redis Python client")
3322 (description
3323 "This package provides a Python interface to the Redis key-value store.")
3324 (license license:expat)))
3325
3326 (define-public python2-redis
3327 (package-with-python2 python-redis))
3328
3329 (define-public python-rq
3330 (package
3331 (name "python-rq")
3332 (version "1.5.2")
3333 (source
3334 (origin
3335 (method git-fetch)
3336 (uri (git-reference
3337 (url "https://github.com/rq/rq")
3338 (commit (string-append "v" version))))
3339 (file-name (git-file-name name version))
3340 (sha256
3341 (base32 "0ikqmpq0g1qiqwd7ar1286l4hqjb6aj2wr844gihhb8ijzwhp8va"))))
3342 (build-system python-build-system)
3343 (arguments
3344 '(#:phases (modify-phases %standard-phases
3345 (add-before 'check 'start-redis
3346 (lambda _
3347 (invoke "redis-server" "--daemonize" "yes")))
3348 (replace 'check
3349 (lambda* (#:key outputs #:allow-other-keys)
3350 (let ((out (assoc-ref outputs "out")))
3351 ;; Drop test that needs the SDK for Sentry.io.
3352 (delete-file "tests/test_sentry.py")
3353 ;; Ensure 'rq' and 'rqworker' ends up on PATH.
3354 (setenv "PATH" (string-append out "/bin:"
3355 (getenv "PATH")))
3356 (invoke "pytest" "-vv")))))))
3357 (native-inputs
3358 `(("python-mock" ,python-mock)
3359 ("python-pytest" ,python-pytest)
3360 ("redis" ,redis)))
3361 (propagated-inputs
3362 `(("python-click" ,python-click)
3363 ("python-redis" ,python-redis)))
3364 (home-page "https://python-rq.org/")
3365 (synopsis "Simple job queues for Python")
3366 (description
3367 "RQ (Redis Queue) is a simple Python library for queueing jobs and
3368 processing them in the background with workers. It is backed by Redis and it
3369 is designed to have a low barrier to entry.")
3370 (license license:bsd-2)))
3371
3372 (define-public python2-rq
3373 (package-with-python2 python-rq))
3374
3375 (define-public python-rq-scheduler
3376 (package
3377 (name "python-rq-scheduler")
3378 (version "0.10.0")
3379 (home-page "https://github.com/rq/rq-scheduler")
3380 (source (origin
3381 (method git-fetch)
3382 (uri (git-reference
3383 (url home-page)
3384 (commit (string-append "v" version))))
3385 (file-name (git-file-name name version))
3386 (sha256
3387 (base32
3388 "0xg6yazqs5kbr2ayvhvljs1h5vgx5k5dds613fmhswln7gglf9hk"))))
3389 (build-system python-build-system)
3390 (arguments
3391 '(#:phases (modify-phases %standard-phases
3392 (add-before 'check 'start-redis
3393 (lambda _
3394 (invoke "redis-server" "--daemonize" "yes")))
3395 (replace 'check
3396 (lambda _
3397 (substitute* "run_tests.py"
3398 (("/usr/bin/env")
3399 (which "env")))
3400 (invoke "./run_tests.py"))))))
3401 (native-inputs
3402 `(("redis" ,redis)
3403 ("which" ,which)))
3404 (propagated-inputs
3405 `(("python-croniter" ,python-croniter)
3406 ("python-rq" ,python-rq)))
3407 (synopsis "Job scheduling capabilities for RQ (Redis Queue)")
3408 (description
3409 "This package provides job scheduling capabilities to @code{python-rq}
3410 (Redis Queue).")
3411 (license license:expat)))
3412
3413 (define-public python-trollius-redis
3414 (package
3415 (name "python-trollius-redis")
3416 (version "0.1.4")
3417 (source
3418 (origin
3419 (method url-fetch)
3420 (uri (pypi-uri "trollius_redis" version))
3421 (sha256
3422 (base32
3423 "0k3vypszmgmaipgw9xscvgm79h2zd6p6ci8gdp5sxl6g5kbqr9fy"))))
3424 (build-system python-build-system)
3425 ;; TODO: Tests require packaging 'hiredis'.
3426 (arguments '(#:tests? #f))
3427 (home-page "https://github.com/benjolitz/trollius-redis")
3428 (synopsis "Port of asyncio-redis to trollius")
3429 (description "@code{trollius-redis} is a Redis client for Python
3430 trollius. It is an asynchronous IO (PEP 3156) implementation of the
3431 Redis protocol.")
3432 (license license:bsd-2)))
3433
3434 (define-public python2-trollius-redis
3435 (package-with-python2 python-trollius-redis))
3436
3437 (define-public python-sqlparse
3438 (package
3439 (name "python-sqlparse")
3440 (version "0.3.1")
3441 (source (origin
3442 (method url-fetch)
3443 (uri (pypi-uri "sqlparse" version))
3444 (sha256
3445 (base32
3446 "0j652a6z7bdf6c77aczfn8m8b2nsr1bcqq48wzghf8vi6wvj0qp1"))))
3447 (build-system python-build-system)
3448 (arguments
3449 `(#:phases
3450 (modify-phases %standard-phases
3451 (replace 'check
3452 (lambda _ (invoke "py.test"))))))
3453 (native-inputs
3454 `(("python-pytest" ,python-pytest)))
3455 (home-page "https://github.com/andialbrecht/sqlparse")
3456 (synopsis "Non-validating SQL parser")
3457 (description "Sqlparse is a non-validating SQL parser for Python. It
3458 provides support for parsing, splitting and formatting SQL statements.")
3459 (license license:bsd-3)))
3460
3461 (define-public python2-sqlparse
3462 (package-with-python2 python-sqlparse))
3463
3464 (define-public python-sql
3465 (package
3466 (name "python-sql")
3467 (version "1.0.0")
3468 (source
3469 (origin
3470 (method url-fetch)
3471 (uri (pypi-uri "python-sql" version))
3472 (sha256
3473 (base32 "05ni936y0ia9xmryl7mlhbj9i80nnvq1bi4zxhb96rv7yvpb3fqb"))))
3474 (build-system python-build-system)
3475 (home-page "https://python-sql.tryton.org/")
3476 (synopsis "Library to write SQL queries in a pythonic way")
3477 (description "@code{python-sql} is a library to write SQL queries, that
3478 transforms idiomatic python function calls to well-formed SQL queries.")
3479 (license license:bsd-3)))
3480
3481 (define-public python2-sql
3482 (package-with-python2 python-sql))
3483
3484 (define-public python-pypika
3485 (package
3486 (name "python-pypika")
3487 (version "0.44.0")
3488 (source
3489 (origin (method git-fetch)
3490 (uri (git-reference
3491 (url "https://github.com/kayak/pypika")
3492 (commit (string-append "v" version))))
3493 (file-name (git-file-name name version))
3494 (sha256
3495 (base32
3496 "0mpddrw9z1pzcc40j3pzhd583hlgjx96aa8ak6m9zzhpm4bv3ard"))))
3497 (build-system python-build-system)
3498 (native-inputs
3499 `(("python-parameterized" ,python-parameterized)))
3500 (home-page "https://github.com/kayak/pypika")
3501 (synopsis "SQL query builder API for Python")
3502 (description
3503 "PyPika is a python SQL query builder that exposes the full richness of
3504 the SQL language using a syntax that reflects the resulting query.")
3505 (license license:asl2.0)))
3506
3507 (define-public mongo-tools
3508 (package
3509 (name "mongo-tools")
3510 (version "3.4.0")
3511 (source
3512 (origin (method git-fetch)
3513 (uri (git-reference
3514 (url "https://github.com/mongodb/mongo-tools")
3515 (commit (string-append "r" version))))
3516 (file-name (git-file-name name version))
3517 (sha256
3518 (base32
3519 "1bcsz5cvj39a7nsxsfqmz9igrw33j6yli9kffigqyscs52amw7x1"))))
3520 (build-system go-build-system)
3521 (arguments
3522 `(#:import-path "github.com/mongodb/mongo-tools"
3523 #:modules ((srfi srfi-1)
3524 (guix build go-build-system)
3525 (guix build utils))
3526 #:install-source? #f
3527 #:phases
3528 (let ((all-tools
3529 '("bsondump" "mongodump" "mongoexport" "mongofiles"
3530 "mongoimport" "mongooplog" "mongorestore"
3531 "mongostat" "mongotop")))
3532 (modify-phases %standard-phases
3533 (add-after 'unpack 'delete-bundled-source-code
3534 (lambda _
3535 (delete-file-recursively
3536 "src/github.com/mongodb/mongo-tools/vendor")
3537 #t))
3538 (add-after 'delete-bundled-source-code 'patch-source
3539 (lambda _
3540 ;; Remove a redundant argument that causes compilation to fail.
3541 (substitute*
3542 "src/github.com/mongodb/mongo-tools/mongorestore/filepath.go"
3543 (("skipping restore of system.profile collection\", db)")
3544 "skipping restore of system.profile collection\")"))
3545 #t))
3546 (replace 'build
3547 (lambda _
3548 (for-each (lambda (tool)
3549 (let ((command
3550 `("go" "build"
3551 ;; This is where the tests expect to find the
3552 ;; executables
3553 "-o" ,(string-append
3554 "src/github.com/mongodb/mongo-tools/bin/"
3555 tool)
3556 "-v"
3557 "-tags=\"ssl sasl\""
3558 "-ldflags"
3559 "-extldflags=-Wl,-z,now,-z,relro"
3560 ,(string-append
3561 "src/github.com/mongodb/mongo-tools/"
3562 tool "/main/" tool ".go"))))
3563 (simple-format #t "build: running ~A\n"
3564 (string-join command))
3565 (apply invoke command)))
3566 all-tools)
3567 #t))
3568 (replace 'check
3569 (lambda _
3570 (with-directory-excursion "src"
3571 (for-each (lambda (tool)
3572 (invoke
3573 "go" "test" "-v"
3574 (string-append "github.com/mongodb/mongo-tools/"
3575 tool)))
3576 all-tools))
3577 #t))
3578 (replace 'install
3579 (lambda* (#:key outputs #:allow-other-keys)
3580 (for-each (lambda (tool)
3581 (install-file
3582 (string-append "src/github.com/mongodb/mongo-tools/bin/"
3583 tool)
3584 (string-append (assoc-ref outputs "out")
3585 "/bin")))
3586 all-tools)
3587 #t))))))
3588 (native-inputs
3589 `(("go-github.com-howeyc-gopass" ,go-github.com-howeyc-gopass)
3590 ("go-github.com-jessevdk-go-flags" ,go-github.com-jessevdk-go-flags)
3591 ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
3592 ("go-gopkg.in-mgo.v2" ,go-gopkg.in-mgo.v2)
3593 ("go-gopkg.in-tomb.v2" ,go-gopkg.in-tomb.v2)
3594 ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)
3595 ("go-github.com-smartystreets-goconvey" ,go-github.com-smartystreets-goconvey)))
3596 (home-page "https://github.com/mongodb/mongo-tools")
3597 (synopsis "Various tools for interacting with MongoDB and BSON")
3598 (description
3599 "This package includes a collection of tools related to MongoDB.
3600 @table @code
3601 @item bsondump
3602 Display BSON files in a human-readable format
3603 @item mongoimport
3604 Convert data from JSON, TSV or CSV and insert them into a collection
3605 @item mongoexport
3606 Write an existing collection to CSV or JSON format
3607 @item mongodump/mongorestore
3608 Dump MongoDB backups to disk in the BSON format
3609 @item mongorestore
3610 Read MongoDB backups in the BSON format, and restore them to a live database
3611 @item mongostat
3612 Monitor live MongoDB servers, replica sets, or sharded clusters
3613 @item mongofiles
3614 Read, write, delete, or update files in GridFS
3615 @item mongooplog
3616 Replay oplog entries between MongoDB servers
3617 @item mongotop
3618 Monitor read/write activity on a mongo server
3619 @end table")
3620 (license license:asl2.0)))
3621
3622 ;; There are many wrappers for this in other languages. When touching, please
3623 ;; be sure to ensure all dependencies continue to build.
3624 (define-public apache-arrow
3625 (package
3626 (name "apache-arrow")
3627 (version "0.17.1")
3628 (source
3629 (origin
3630 (method git-fetch)
3631 (uri (git-reference
3632 (url "https://github.com/apache/arrow")
3633 (commit (string-append "apache-arrow-" version))))
3634 (file-name (git-file-name name version))
3635 (sha256
3636 (base32
3637 "02r6yx3yhywzikd3b0vfkjgddhfiriyx2vpm3jf5880wq59x798a"))))
3638 (build-system cmake-build-system)
3639 (arguments
3640 `(#:tests? #f
3641 #:phases
3642 (modify-phases %standard-phases
3643 (add-before 'configure 'enter-source-directory
3644 (lambda _ (chdir "cpp") #t))
3645 (add-after 'unpack 'set-env
3646 (lambda _
3647 (setenv "BOOST_ROOT" (assoc-ref %build-inputs "boost"))
3648 (setenv "BROTLI_HOME" (assoc-ref %build-inputs "brotli"))
3649 (setenv "FLATBUFFERS_HOME" (assoc-ref %build-inputs "flatbuffers"))
3650 (setenv "RAPIDJSON_HOME" (assoc-ref %build-inputs "rapidjson"))
3651 #t)))
3652 #:build-type "Release"
3653 #:configure-flags
3654 (list "-DARROW_PYTHON=ON"
3655 "-DARROW_GLOG=ON"
3656 ;; Parquet options
3657 "-DARROW_PARQUET=ON"
3658 "-DPARQUET_BUILD_EXECUTABLES=ON"
3659 ;; The maintainers disallow using system versions of
3660 ;; jemalloc:
3661 ;; https://issues.apache.org/jira/browse/ARROW-3507. This
3662 ;; is unfortunate because jemalloc increases performance:
3663 ;; https://arrow.apache.org/blog/2018/07/20/jemalloc/.
3664 "-DARROW_JEMALLOC=OFF"
3665
3666 ;; The CMake option ARROW_DEPENDENCY_SOURCE is a global
3667 ;; option that instructs the build system how to resolve
3668 ;; each dependency. SYSTEM = Finding the dependency in
3669 ;; system paths using CMake's built-in find_package
3670 ;; function, or using pkg-config for packages that do not
3671 ;; have this feature
3672 "-DARROW_DEPENDENCY_SOURCE=SYSTEM"
3673
3674 ;; Split output into its component packages.
3675 (string-append "-DCMAKE_INSTALL_PREFIX="
3676 (assoc-ref %outputs "lib"))
3677 (string-append "-DCMAKE_INSTALL_RPATH="
3678 (assoc-ref %outputs "lib")
3679 "/lib")
3680 (string-append "-DCMAKE_INSTALL_BINDIR="
3681 (assoc-ref %outputs "out")
3682 "/bin")
3683 (string-append "-DCMAKE_INSTALL_INCLUDEDIR="
3684 (assoc-ref %outputs "include")
3685 "/share/include")
3686
3687
3688 "-DARROW_WITH_SNAPPY=ON"
3689 "-DARROW_WITH_ZLIB=ON"
3690 "-DARROW_WITH_ZSTD=ON"
3691 "-DARROW_WITH_LZ4=ON"
3692 "-DARROW_COMPUTE=ON"
3693 "-DARROW_CSV=ON"
3694 "-DARROW_DATASET=ON"
3695 "-DARROW_FILESYSTEM=ON"
3696 "-DARROW_HDFS=ON"
3697 "-DARROW_JSON=ON"
3698 ;; Arrow Python C++ integration library (required for
3699 ;; building pyarrow). This library must be built against
3700 ;; the same Python version for which you are building
3701 ;; pyarrow. NumPy must also be installed. Enabling this
3702 ;; option also enables ARROW_COMPUTE, ARROW_CSV,
3703 ;; ARROW_DATASET, ARROW_FILESYSTEM, ARROW_HDFS, and
3704 ;; ARROW_JSON.
3705 "-DARROW_PYTHON=ON"
3706
3707 ;; Building the tests forces on all the
3708 ;; optional features and the use of static
3709 ;; libraries.
3710 "-DARROW_BUILD_TESTS=OFF"
3711 "-DBENCHMARK_ENABLE_GTEST_TESTS=OFF"
3712 ;;"-DBENCHMARK_ENABLE_TESTING=OFF"
3713 "-DARROW_BUILD_STATIC=OFF")))
3714 (inputs
3715 `(("boost" ,boost)
3716 ("brotli" ,google-brotli)
3717 ("double-conversion" ,double-conversion)
3718 ("snappy" ,snappy)
3719 ("gflags" ,gflags)
3720 ("glog" ,glog)
3721 ("apache-thrift" ,apache-thrift "lib")
3722 ("protobuf" ,protobuf)
3723 ("rapidjson" ,rapidjson)
3724 ("zlib" ,zlib)
3725 ("bzip2" ,bzip2)
3726 ("lz4" ,lz4)
3727 ("zstd" ,zstd "lib")
3728 ("re2" ,re2)
3729 ("grpc" ,grpc)
3730 ("python-3" ,python)
3731 ("python-numpy" ,python-numpy)))
3732 (native-inputs
3733 `(("pkg-config" ,pkg-config)))
3734 (outputs '("out" "lib" "include"))
3735 (home-page "https://arrow.apache.org/")
3736 (synopsis "Columnar in-memory analytics")
3737 (description "Apache Arrow is a columnar in-memory analytics layer
3738 designed to accelerate big data. It houses a set of canonical in-memory
3739 representations of flat and hierarchical data along with multiple
3740 language-bindings for structure manipulation. It also provides IPC and common
3741 algorithm implementations.")
3742 (license license:asl2.0)))
3743
3744 (define-public python-pyarrow
3745 (package
3746 (inherit apache-arrow)
3747 (name "python-pyarrow")
3748 (build-system python-build-system)
3749 (arguments
3750 '(#:tests? #f ; XXX There are no tests in the "python" directory
3751 #:phases
3752 (modify-phases %standard-phases
3753 (delete 'build) ; XXX the build is performed again during the install phase
3754 (add-after 'unpack 'enter-source-directory
3755 (lambda _ (chdir "python") #t))
3756 (add-after 'unpack 'make-git-checkout-writable
3757 (lambda _
3758 (for-each make-file-writable (find-files "."))
3759 #t)))))
3760 (propagated-inputs
3761 `(("apache-arrow" ,apache-arrow "lib")
3762 ("python-numpy" ,python-numpy)
3763 ("python-pandas" ,python-pandas)
3764 ("python-six" ,python-six)))
3765 (native-inputs
3766 `(("cmake" ,cmake-minimal)
3767 ("pkg-config" ,pkg-config)
3768 ("python-cython" ,python-cython)
3769 ("python-pytest" ,python-pytest)
3770 ("python-pytest-runner" ,python-pytest-runner)
3771 ("python-setuptools-scm" ,python-setuptools-scm)))
3772 (outputs '("out"))
3773 (home-page "https://arrow.apache.org/docs/python/")
3774 (synopsis "Python bindings for Apache Arrow")
3775 (description
3776 "This library provides a Pythonic API wrapper for the reference Arrow C++
3777 implementation, along with tools for interoperability with pandas, NumPy, and
3778 other traditional Python scientific computing packages.")
3779 (license license:asl2.0)))
3780
3781 (define-public python2-pyarrow
3782 (package-with-python2 python-pyarrow))
3783
3784 (define-public python-crate
3785 (package
3786 (name "python-crate")
3787 (version "0.23.2")
3788 (source (origin
3789 (method url-fetch)
3790 (uri (pypi-uri "crate" version))
3791 (sha256
3792 (base32
3793 "0ngmlvi320c5gsxab0s7qgq0ck4jdlcwvb6lbjhnfprafdp56vvx"))))
3794 (build-system python-build-system)
3795 (propagated-inputs
3796 `(("python-urllib3" ,python-urllib3)))
3797 (home-page "https://github.com/crate/crate-python")
3798 (synopsis "CrateDB Python client")
3799 (description
3800 "This package provides a Python client library for CrateDB.
3801 It implements the Python DB API 2.0 specification and includes support for
3802 SQLAlchemy.")
3803 (license license:asl2.0)))
3804
3805 (define-public libdbi
3806 (package
3807 (name "libdbi")
3808 (version "0.9.0")
3809 (source (origin
3810 (method url-fetch)
3811 (uri (string-append "mirror://sourceforge/libdbi/libdbi/libdbi-"
3812 version "/libdbi-" version ".tar.gz"))
3813 (sha256
3814 (base32
3815 "00s5ra7hdlq25iv23nwf4h1v3kmbiyzx0v9bhggjiii4lpf6ryys"))))
3816 (build-system gnu-build-system)
3817 (synopsis "Database independent abstraction layer in C")
3818 (description
3819 "This library implements a database independent abstraction layer in C,
3820 similar to the DBI/DBD layer in Perl. Writing one generic set of code,
3821 programmers can leverage the power of multiple databases and multiple
3822 simultaneous database connections by using this framework.")
3823 (home-page "http://libdbi.sourceforge.net/")
3824 (license license:lgpl2.1+)))
3825
3826 (define-public libdbi-drivers
3827 (package
3828 (name "libdbi-drivers")
3829 (version "0.9.0")
3830 (source (origin
3831 (method url-fetch)
3832 (uri (string-append "mirror://sourceforge/libdbi-drivers/"
3833 "libdbi-drivers/libdbi-drivers-" version
3834 "/libdbi-drivers-" version ".tar.gz"))
3835 (sha256
3836 (base32
3837 "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3"))))
3838 (build-system gnu-build-system)
3839 (native-inputs
3840 `(;; For tests.
3841 ("inetutils" ,inetutils)
3842 ("glibc-locales" ,glibc-locales)
3843 ("mariadb" ,mariadb)))
3844 (inputs
3845 `(("libdbi" ,libdbi)
3846 ("mariadb:dev" ,mariadb "dev")
3847 ("mariadb:lib" ,mariadb "lib")
3848 ("postgresql" ,postgresql)
3849 ("sqlite" ,sqlite)))
3850 (arguments
3851 `(#:configure-flags
3852 (let ((libdbi (assoc-ref %build-inputs "libdbi"))
3853 (mysql:inc (assoc-ref %build-inputs "mariadb:dev"))
3854 (mysql:lib (assoc-ref %build-inputs "mariadb:lib"))
3855 (postgresql (assoc-ref %build-inputs "postgresql"))
3856 (sqlite (assoc-ref %build-inputs "sqlite")))
3857 (list "--disable-docs"
3858 (string-append "--with-dbi-incdir=" libdbi "/include")
3859 (string-append "--with-dbi-libdir=" libdbi "/lib")
3860 "--with-mysql"
3861 (string-append "--with-mysql-incdir=" mysql:inc "/include/mysql")
3862 (string-append "--with-mysql-libdir=" mysql:lib "/lib")
3863 "--with-pgsql"
3864 (string-append "--with-pgsql-incdir=" postgresql "/include")
3865 (string-append "--with-pgsql-libdir=" postgresql "/lib")
3866 "--with-sqlite3"
3867 (string-append "--with-sqlite-incdir=" sqlite "/include")
3868 (string-append "--with-sqlite-libdir=" sqlite "/lib")))
3869 #:phases
3870 (modify-phases %standard-phases
3871 (add-after 'unpack 'fix-tests
3872 (lambda* (#:key inputs #:allow-other-keys)
3873 (substitute* "tests/test_mysql.sh"
3874 (("^MYMYSQLD=.*")
3875 (string-append "MYMYSQLD="
3876 (assoc-ref inputs "mariadb")
3877 "/bin/mysqld")))
3878 #t))
3879 (add-after 'install 'remove-empty-directories
3880 (lambda* (#:key outputs #:allow-other-keys)
3881 (let ((var (string-append (assoc-ref outputs "out") "/var")))
3882 (delete-file-recursively var))
3883 #t)))))
3884 (synopsis "Database drivers for the libdbi framework")
3885 (description
3886 "The @code{libdbi-drivers} library provides the database specific drivers
3887 for the @code{libdbi} framework.
3888
3889 The drivers officially supported by @code{libdbi} are:
3890 @itemize
3891 @item MySQL,
3892 @item PostgreSQL,
3893 @item SQLite.
3894 @end itemize")
3895 (home-page "http://libdbi-drivers.sourceforge.net/")
3896 (license license:lgpl2.1+)))
3897
3898 (define-public soci
3899 (package
3900 (name "soci")
3901 (version "4.0.1")
3902 (source (origin
3903 (method git-fetch)
3904 (uri (git-reference
3905 (url "https://github.com/SOCI/soci/")
3906 (commit version)))
3907 (file-name (git-file-name name version))
3908 (sha256
3909 (base32
3910 "14x2gjblkgpflv75wl144cyjp1sis5rbxnr9r2gj3yw16v2av0bp"))))
3911 (build-system cmake-build-system)
3912 (inputs
3913 `(("firebird" ,firebird)
3914 ("postgresql" ,postgresql)
3915 ("sqlite" ,sqlite)
3916 ("odbc" ,unixodbc)
3917 ("boost" ,boost)
3918 ("mariadb:dev" ,mariadb "dev")))
3919 (arguments
3920 `(#:configure-flags
3921 ;; C++11 (-DSOCI_CXX11) is OFF by default. hyperledger-iroha needs it.
3922 (list "-DCMAKE_CXX_STANDARD=17"
3923 "-DSOCI_LIBDIR=lib")
3924 #:tests? #f)) ; may require running database management systems
3925 (synopsis "C++ Database Access Library")
3926 (description
3927 "SOCI is an abstraction layer for several database backends, including
3928 PostreSQL, SQLite, ODBC and MySQL.")
3929 (home-page "http://soci.sourceforge.net/")
3930 (license license:boost1.0)))