1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 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 Efraim Flashner <efraim@flashner.co.il>
14 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@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 Marius Bakke <mbakke@fastmail.com>
21 ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
22 ;;; Copyright © 2017 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 Tobias Geerinckx-Rice <me@tobias.gr>
27 ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
28 ;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com>
29 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
30 ;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
31 ;;; Copyright © 2015, 2017, 2018 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>
36 ;;; This file is part of GNU Guix.
38 ;;; GNU Guix is free software; you can redistribute it and/or modify it
39 ;;; under the terms of the GNU General Public License as published by
40 ;;; the Free Software Foundation; either version 3 of the License, or (at
41 ;;; your option) any later version.
43 ;;; GNU Guix is distributed in the hope that it will be useful, but
44 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
45 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 ;;; GNU General Public License for more details.
48 ;;; You should have received a copy of the GNU General Public License
49 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
51 (define-module (gnu packages databases)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages admin)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages avahi)
57 #:use-module (gnu packages base)
58 #:use-module (gnu packages bash)
59 #:use-module (gnu packages bison)
60 #:use-module (gnu packages boost)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages cmake)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages crypto)
65 #:use-module (gnu packages curl)
66 #:use-module (gnu packages cyrus-sasl)
67 #:use-module (gnu packages emacs)
68 #:use-module (gnu packages gettext)
69 #:use-module (gnu packages glib)
70 #:use-module (gnu packages gnupg)
71 #:use-module (gnu packages guile)
72 #:use-module (gnu packages time)
73 #:use-module (gnu packages golang)
74 #:use-module (gnu packages jemalloc)
75 #:use-module (gnu packages language)
76 #:use-module (gnu packages libevent)
77 #:use-module (gnu packages linux)
78 #:use-module (gnu packages man)
79 #:use-module (gnu packages ncurses)
80 #:use-module (gnu packages parallel)
81 #:use-module (gnu packages pcre)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages perl-check)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages popt)
86 #:use-module (gnu packages python)
87 #:use-module (gnu packages rdf)
88 #:use-module (gnu packages readline)
89 #:use-module (gnu packages ruby)
90 #:use-module (gnu packages serialization)
91 #:use-module (gnu packages statistics)
92 #:use-module (gnu packages tcl)
93 #:use-module (gnu packages terminals)
94 #:use-module (gnu packages textutils)
95 #:use-module (gnu packages tls)
96 #:use-module (gnu packages valgrind)
97 #:use-module (gnu packages web)
98 #:use-module (gnu packages xml)
99 #:use-module ((guix licenses) #:prefix license:)
100 #:use-module (guix packages)
101 #:use-module (guix download)
102 #:use-module (guix git-download)
103 #:use-module (guix build-system gnu)
104 #:use-module (guix build-system go)
105 #:use-module (guix build-system perl)
106 #:use-module (guix build-system python)
107 #:use-module (guix build-system ruby)
108 #:use-module (guix build-system cmake)
109 #:use-module (guix build-system r)
110 #:use-module (guix build-system scons)
111 #:use-module ((guix build utils) #:hide (which))
112 #:use-module (guix utils)
113 #:use-module (srfi srfi-1)
114 #:use-module (srfi srfi-26)
115 #:use-module (ice-9 match))
117 (define-public 4store
123 (uri (string-append "https://github.com/4store/4store/archive/v"
125 (file-name (string-append name "-" version ".tar.gz"))
127 (base32 "004fmcf1w75zhc1x3zc6kc97j4jqn2v5nhk6yb3z3cpfrhzi9j50"))
128 (patches (search-patches "4store-unset-preprocessor-directive.patch"
129 "4store-fix-buildsystem.patch"))))
130 (build-system gnu-build-system)
134 ("autoconf" ,autoconf)
135 ("automake" ,automake)
136 ("gettext" ,gettext-minimal)
138 ("pcre" ,pcre "bin") ;for 'pcre-config'
139 ("pkg-config" ,pkg-config)))
145 ("readline" ,readline)
147 ("cyrus-sasl" ,cyrus-sasl)
149 ("util-linux" ,util-linux)))
152 (modify-phases %standard-phases
153 (add-after 'unpack 'generate-configure
155 (zero? (system* "sh" "autogen.sh")))))))
156 ;; http://www.4store.org has been down for a while now.
157 (home-page "https://github.com/4store/4store")
158 (synopsis "Clustered RDF storage and query engine")
159 (description "4store is a RDF/SPARQL store written in C, supporting
160 either single machines or networked clusters.")
161 (license license:gpl3+)))
169 (uri (string-append "mirror://gnu/gdbm/gdbm-"
173 "0lx201q20dvc70f8a3c9s7s18z15inlxvbffph97ngvrgnyjq9cx"))))
174 (arguments `(#:configure-flags '("--enable-libgdbm-compat")))
175 (build-system gnu-build-system)
176 (home-page "http://www.gnu.org.ua/software/gdbm")
178 "Hash library of database functions compatible with traditional dbm")
180 "GDBM is a library for manipulating hashed databases. It is used to
181 store key/value pairs in a file in a manner similar to the Unix dbm library
182 and provides interfaces to the traditional file format.")
183 (license license:gpl3+)))
185 (define-public go-gopkg.in-mgo.v2
187 (name "go-gopkg.in-mgo.v2")
188 (version "2016.08.01")
192 (url "https://github.com/go-mgo/mgo")
193 (commit (string-append "r" version))))
194 (file-name (git-file-name name version))
197 "0rwbi1z63w43b0z9srm8m7iz1fdwx7bq7n2mz862d6liiaqa59jd"))))
198 (build-system go-build-system)
200 `(#:import-path "gopkg.in/mgo.v2"
201 ;; TODO: The tests fail as MongoDB fails to start
202 ;; Error parsing command line: unrecognised option '--chunkSize'
205 (modify-phases %standard-phases
206 (delete 'reset-gzip-timestamps)
207 (add-before 'check 'start-mongodb
208 (lambda* (#:key tests? #:allow-other-keys)
210 (with-directory-excursion "src/gopkg.in/mgo.v2"
211 (invoke "make" "startdb")))))
212 (add-after 'check 'stop'mongodb
213 (lambda* (#:key tests? #:allow-other-keys)
215 (with-directory-excursion "src/gopkg.in/mgo.v2"
216 (invoke "make" "stopdb"))))))))
218 `(("go-gopkg.in-check.v1" ,go-gopkg.in-check.v1)
220 ("daemontools" ,daemontools)))
221 (synopsis "@code{mgo} offers a rich MongoDB driver for Go.")
223 "@code{mgo} (pronounced as mango) is a MongoDB driver for the Go language.
224 It implements a rich selection of features under a simple API following
225 standard Go idioms.")
226 (home-page "http://labix.org/mgo")
227 (license license:bsd-2)))
235 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
239 "1yx8wzhch5wwh016nh0kfxvknjkafv6ybkqh6nh7lxx50jqf5id9"))))
240 (build-system gnu-build-system)
241 (outputs '("out" ; programs, libraries, headers
242 "doc")) ; 94 MiB of HTML docs
244 '(#:tests? #f ; no check target available
245 #:disallowed-references ("doc")
247 (modify-phases %standard-phases
249 (lambda* (#:key outputs #:allow-other-keys)
250 (let ((out (assoc-ref outputs "out"))
251 (doc (assoc-ref outputs "doc")))
252 ;; '--docdir' is not honored, so we need to patch.
253 (substitute* "dist/Makefile.in"
254 (("docdir[[:blank:]]*=.*")
255 (string-append "docdir = " doc "/share/doc/bdb")))
258 (system* "./dist/configure"
259 (string-append "--prefix=" out)
260 (string-append "CONFIG_SHELL=" (which "bash"))
261 (string-append "SHELL=" (which "bash"))
263 ;; Remove 7 MiB of .a files.
266 ;; The compatibility mode is needed by some packages,
270 ;; The following flag is needed so that the inclusion
271 ;; of db_cxx.h into C++ files works; it leads to
272 ;; HAVE_CXX_STDHEADERS being defined in db_cxx.h.
273 "--enable-cxx"))))))))
274 (synopsis "Berkeley database")
276 "Berkeley DB is an embeddable database allowing developers the choice of
277 SQL, Key/Value, XML/XQuery or Java Object storage for their data model.")
278 ;; Starting with version 6, BDB is distributed under AGPL3. Many individual
279 ;; files are covered by the 3-clause BSD license.
280 (license (list license:agpl3+ license:bsd-3))
282 "http://www.oracle.com/us/products/database/berkeley-db/overview/index.html")))
284 (define-public bdb-5.3
285 (package (inherit bdb)
288 (license (license:non-copyleft "file://LICENSE"
289 "See LICENSE in the distribution."))
292 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
296 "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0"))))
298 `(#:tests? #f ; no check target available
299 #:disallowed-references ("doc")
301 (modify-phases %standard-phases
303 (lambda* (#:key outputs #:allow-other-keys)
304 (let ((out (assoc-ref outputs "out"))
305 (doc (assoc-ref outputs "doc")))
306 ;; '--docdir' is not honored, so we need to patch.
307 (substitute* "dist/Makefile.in"
308 (("docdir[[:blank:]]*=.*")
309 (string-append "docdir = " doc "/share/doc/bdb")))
312 (system* "./dist/configure"
313 (string-append "--prefix=" out)
314 (string-append "CONFIG_SHELL=" (which "bash"))
315 (string-append "SHELL=" (which "bash"))
317 ;; Bdb doesn't recognize aarch64 as an architecture.
318 ,@(if (string=? "aarch64-linux" (%current-system))
319 '("--build=aarch64-unknown-linux-gnu")
322 ;; Remove 7 MiB of .a files.
325 ;; The compatibility mode is needed by some packages,
329 ;; The following flag is needed so that the inclusion
330 ;; of db_cxx.h into C++ files works; it leads to
331 ;; HAVE_CXX_STDHEADERS being defined in db_cxx.h.
332 "--enable-cxx"))))))))))
334 (define-public es-dump-restore
336 (name "es-dump-restore")
341 (uri (rubygems-uri "es_dump_restore" version))
344 "020yk7f1hw48clmf5501z3xv9shsdchyymcv0y2cci2c1xvr1mim"))))
345 (build-system ruby-build-system)
347 '(#:tests? #f)) ;; No testsuite.
349 `(("ruby-httpclient" ,ruby-httpclient)
350 ("ruby-multi-json" ,ruby-multi-json)
351 ("ruby-progress_bar" ,ruby-progress_bar)
352 ("ruby-rubyzip" ,ruby-rubyzip)
353 ("ruby-thor" ,ruby-thor)))
354 (synopsis "Utility for dumping and restoring ElasticSearch indexes")
356 "This package provides a utility for dumping the contents of an
357 ElasticSearch index to a compressed file and restoring the dumpfile back to an
358 ElasticSearch server")
359 (home-page "https://github.com/patientslikeme/es_dump_restore")
360 (license license:expat)))
362 (define-public leveldb
368 (uri (string-append "https://github.com/google/leveldb"
369 "/archive/v" version ".tar.gz"))
370 (file-name (string-append name "-" version ".tar.gz"))
373 "0r36bcrj6b2afsp4aw1gjai3jbs1c7734pxpc1jz7hh9nasyiazm"))))
374 (build-system gnu-build-system)
376 '(#:make-flags (list "CC=gcc")
378 (modify-phases %standard-phases
381 ;; There is no install target, so we do it here.
382 (lambda* (#:key outputs #:allow-other-keys)
383 (let* ((out (assoc-ref outputs "out"))
384 (lib (string-append out "/lib"))
385 (include (string-append out "/include")))
386 (for-each (lambda (file)
387 (install-file file lib))
388 (find-files "out-shared" "^libleveldb\\.so.*$"))
389 (copy-recursively "include" include)
392 `(("snappy" ,snappy)))
393 (home-page "http://leveldb.org/")
394 (synopsis "Fast key-value storage library")
396 "LevelDB is a fast key-value storage library that provides an ordered
397 mapping from string keys to string values.")
398 (license license:bsd-3)))
400 (define-public memcached
408 "https://memcached.org/files/memcached-" version ".tar.gz"))
411 "00szy9d4szaixi260dcd4846zci04y0sd47ia2lzg0bxkn2ywxcn"))))
412 (build-system gnu-build-system)
414 `(("libevent" ,libevent)
415 ("cyrus-sasl" ,cyrus-sasl)))
416 (home-page "https://memcached.org/")
417 (synopsis "In memory caching service")
418 (description "Memcached is a in memory key value store. It has a small
419 and generic API, and was originally intended for use with dynamic web
421 (license license:bsd-3)))
423 (define-public mongodb
429 (uri (string-append "https://github.com/mongodb/mongo/archive/r"
431 (file-name (string-append name "-" version ".tar.gz"))
433 (base32 "0676lvkljj7a5hdhv78dbykqnqrj9lbn9799mi84b8vbnzsq961r"))
434 (modules '((guix build utils)))
437 (for-each (lambda (dir)
438 (delete-file-recursively
439 (string-append "src/third_party/" dir)))
440 '("pcre-8.41" "scons-2.5.0" "snappy-1.1.3"
441 "valgrind-3.11.0" "wiredtiger"
442 "yaml-cpp-0.5.3" "zlib-1.2.8"))))
445 (search-patch "mongodb-support-unknown-linux-distributions.patch")))))
446 (build-system scons-build-system)
448 `(("openssl" ,openssl)
450 ,@(match (%current-system)
451 ((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
452 `(("wiredtiger" ,wiredtiger)))
454 ("yaml-cpp" ,yaml-cpp)
458 `(("valgrind" ,valgrind)
460 ("python" ,python2-minimal)
461 ("python2-pymongo" ,python2-pymongo)
462 ("python2-pyyaml" ,python2-pyyaml)
465 `(#:scons ,scons-python2
467 (let ((common-options
468 `(;; "--use-system-tcmalloc" TODO: Missing gperftools
470 ;; wiredtiger is 64-bit only
471 ,,(if (any (cute string-prefix? <> (or (%current-target-system)
473 '("i686-linux" "armhf-linux"))
475 ``"--use-system-wiredtiger")
477 ;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1
478 ;; --use-system-boost
479 "--use-system-snappy"
481 "--use-system-valgrind"
482 ;; "--use-system-stemmer" TODO: Missing relevant package
484 "--disable-warnings-as-errors"
485 ,(format #f "--jobs=~a" (parallel-job-count))
487 (modify-phases %standard-phases
488 (add-after 'unpack 'scons-propagate-environment
490 ;; Modify the SConstruct file to arrange for
491 ;; environment variables to be propagated.
492 (substitute* "SConstruct"
493 (("^env = Environment\\(")
494 "env = Environment(ENV=os.environ, "))
496 (add-after 'unpack 'create-version-file
498 (call-with-output-file "version.json"
500 (display ,(simple-format #f "{
506 (zero? (apply system*
509 "mongod" "mongo" "mongos")))))
511 (lambda* (#:key tests? inputs #:allow-other-keys)
513 (string-append (assoc-ref inputs "tzdata")
516 ;; Note that with the tests, especially the unittests, the
517 ;; build can take up to ~45GB of space, as many tests are
518 ;; individual executable files, with some being hundreds of
519 ;; megabytes in size.
522 invoke `("scons" ,@common-options "dbtest" "unittests"))
523 (substitute* "build/unittests.txt"
524 ;; TODO: Don't run the async_stream_test, as it hangs
525 (("^build\\/opt\\/mongo\\/executor\\/async\\_stream\\_test\n$")
527 ;; TODO: This test fails
528 ;; Expected 0UL != disks.size() (0 != 0) @src/mongo/util/procparser_test.cpp:476
529 (("^build\\/opt\\/mongo\\/util\\/procparser\\_test\n$")
531 (invoke "python" "buildscripts/resmoke.py"
532 "--suites=dbtest,unittests"
533 (format #f "--jobs=~a" (parallel-job-count)))))))
536 (let ((bin (string-append (assoc-ref %outputs "out") "/bin")))
537 (install-file "mongod" bin)
538 (install-file "mongos" bin)
539 (install-file "mongo" bin))
541 (home-page "https://www.mongodb.org/")
542 (synopsis "High performance and high availability document database")
544 "Mongo is a high-performance, high availability, schema-free
545 document-oriented database. A key goal of MongoDB is to bridge the gap
546 between key/value stores (which are fast and highly scalable) and traditional
547 RDBMS systems (which are deep in functionality).")
548 (license (list license:agpl3
549 ;; Some parts are licensed under the Apache License
558 (uri (list (string-append
559 "http://dev.mysql.com/get/Downloads/MySQL-"
560 (version-major+minor version) "/"
561 name "-" version ".tar.gz")
563 "http://downloads.mysql.com/archives/get/file/"
564 name "-" version ".tar.gz")))
567 "1dq9bgnajf7cq3mrjkwv6w5nwslhs26lkrw56i7w4fbsq9wm087s"))))
568 (build-system cmake-build-system)
571 '("-DBUILD_CONFIG=mysql_release"
574 "-DDEFAULT_CHARSET=utf8"
575 "-DDEFAULT_COLLATION=utf8_general_ci"
576 "-DMYSQL_DATADIR=/var/lib/mysql"
577 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
578 "-DINSTALL_INFODIR=share/mysql/docs"
579 "-DINSTALL_MANDIR=share/man"
580 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
581 "-DINSTALL_SCRIPTDIR=bin"
582 "-DINSTALL_INCLUDEDIR=include/mysql"
583 "-DINSTALL_DOCREADMEDIR=share/mysql/docs"
584 "-DINSTALL_SUPPORTFILESDIR=share/mysql"
585 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
586 "-DINSTALL_DOCDIR=share/mysql/docs"
587 "-DINSTALL_SHAREDIR=share/mysql"
588 ;; Get rid of test data.
589 "-DINSTALL_MYSQLTESTDIR="
590 "-DINSTALL_SQLBENCHDIR=")
591 #:phases (modify-phases %standard-phases
593 'unpack 'patch-boost-version
595 ;; Mysql wants boost-1.59.0 specifically
596 (substitute* "cmake/boost.cmake"
598 ,(match (string-split (package-version boost) #\.)
599 ((_ minor . _) minor))))))
601 'install 'remove-extra-binaries
602 (lambda* (#:key outputs #:allow-other-keys)
603 (let ((out (assoc-ref outputs "out")))
604 ;; Remove the 3 *_embedded files, which weigh in at
606 (for-each delete-file
607 (find-files (string-append out "/bin")
619 (home-page "http://www.mysql.com/")
620 (synopsis "Fast, easy to use, and popular database")
622 "MySQL is a fast, reliable, and easy to use relational database
623 management system that supports the standardized Structured Query
625 (license license:gpl2)))
627 (define-public mariadb
633 (uri (string-append "https://downloads.mariadb.org/f/"
634 name "-" version "/source/"
635 name "-" version ".tar.gz"))
638 "0bax748j4srsyhw5cs5jvwigndh0zwmf4r2cjvhja31ckx8jqccl"))))
639 (build-system cmake-build-system)
642 '("-DBUILD_CONFIG=mysql_release"
643 ;; Linking with libarchive fails, like this:
645 ;; ld: /gnu/store/...-libarchive-3.2.2/lib/libarchive.a(archive_entry.o):
646 ;; relocation R_X86_64_32 against `.bss' can not be used when
647 ;; making a shared object; recompile with -fPIC
649 ;; For now, disable the features that that use libarchive (xtrabackup).
650 "-DWITH_LIBARCHIVE=OFF"
652 "-DDEFAULT_CHARSET=utf8"
653 "-DDEFAULT_COLLATION=utf8_general_ci"
654 "-DMYSQL_DATADIR=/var/lib/mysql"
655 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
656 "-DINSTALL_INFODIR=share/mysql/docs"
657 "-DINSTALL_MANDIR=share/man"
658 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
659 "-DINSTALL_SCRIPTDIR=bin"
660 "-DINSTALL_INCLUDEDIR=include/mysql"
661 "-DINSTALL_DOCREADMEDIR=share/mysql/docs"
662 "-DINSTALL_SUPPORTFILESDIR=share/mysql/support-files"
663 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
664 "-DINSTALL_DOCDIR=share/mysql/docs"
665 "-DINSTALL_SHAREDIR=share/mysql")
667 (modify-phases %standard-phases
669 'configure 'pre-configure
671 (setenv "CONFIG_SHELL" (which "sh"))
674 'install 'post-install
675 (lambda* (#:key outputs #:allow-other-keys)
676 (let* ((out (assoc-ref outputs "out"))
677 (test (assoc-ref outputs "test")))
678 (substitute* (string-append out "/bin/mysql_install_db")
680 (string-append "basedir=\"" out "\"")))
681 ;; Remove unneeded files for testing.
682 (with-directory-excursion out
683 (for-each delete-file-recursively
684 '("data" "mysql-test" "sql-bench"
685 "share/man/man1/mysql-test-run.pl.1")))))))))
690 `(("jemalloc" ,jemalloc)
697 (home-page "https://mariadb.org/")
698 (synopsis "SQL database server")
700 "MariaDB is a multi-user and multi-threaded SQL database server, designed
701 as a drop-in replacement of MySQL.")
702 (license license:gpl2)))
704 (define-public postgresql
710 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
711 version "/postgresql-" version ".tar.bz2"))
714 "06lkcwsf851z49zqcws5yc77s2yrbaazf2nvbk38hpp31rw6i8kf"))))
715 (build-system gnu-build-system)
717 `(#:configure-flags '("--with-uuid=e2fs")
719 (modify-phases %standard-phases
720 (add-before 'configure 'patch-/bin/sh
722 ;; Refer to the actual shell.
723 (substitute* '("src/bin/pg_ctl/pg_ctl.c"
724 "src/bin/psql/command.c")
725 (("/bin/sh") (which "sh")))
727 (add-after 'build 'build-contrib
729 (zero? (system* "make" "-C" "contrib"))))
730 (add-after 'install 'install-contrib
732 (zero? (system* "make" "-C" "contrib" "install")))))))
734 `(("readline" ,readline)
735 ("libuuid" ,util-linux)
737 (home-page "https://www.postgresql.org/")
738 (synopsis "Powerful object-relational database system")
740 "PostgreSQL is a powerful object-relational database system. It is fully
741 ACID compliant, has full support for foreign keys, joins, views, triggers, and
742 stored procedures (in multiple languages). It includes most SQL:2008 data
743 types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and
744 TIMESTAMP. It also supports storage of binary large objects, including
745 pictures, sounds, or video.")
746 (license (license:x11-style "file://COPYRIGHT"))))
748 (define-public postgresql-9.6
755 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
756 version "/postgresql-" version ".tar.bz2"))
759 "0w7bwf19wbdd3jjbjv03cnx56qka4801srcbsayk9v792awv7zga"))))))
768 (uri (string-append "http://fallabs.com/" name "/"
769 name "-" version ".tar.gz"))
772 "0gmpvhn02pkq280ffmn4da1g4mdr1xxz7l80b7y4n7km1mrzwrml"))))
773 (build-system gnu-build-system)
775 `( #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
776 (assoc-ref %outputs "out")
778 (home-page "http://fallabs.com/qdbm")
779 (synopsis "Key-value database")
780 (description "QDBM is a library of routines for managing a
781 database. The database is a simple data file containing key-value
782 pairs. Every key and value is serial bytes with variable length.
783 Binary data as well as character strings can be used as a key or a
784 value. There is no concept of data tables or data types. Records are
785 organized in a hash table or B+ tree.")
786 (license license:lgpl2.1+)))
788 (define-public recutils
794 (uri (string-append "mirror://gnu/recutils/recutils-"
798 "0cdwa4094x3yx7vn98xykvnlp9rngvd58d19vs3vh5hrvggccg93"))))
799 (build-system gnu-build-system)
801 ;; Running tests in parallel leads to test failures and crashes in
803 (arguments '(#:parallel-tests? #f
805 (list (string-append "--with-bash-headers="
806 (assoc-ref %build-inputs "bash:include")
809 #:phases (modify-phases %standard-phases
810 (add-before 'build 'set-bash4.4-header-location
812 (substitute* "bash/Makefile.in"
813 ;; Adjust the header search path for Bash
814 ;; 4.4 in accordance with 'bash.pc'.
815 (("AM_CPPFLAGS = (.*)$" _ rest)
816 (string-append "AM_CPPFLAGS = "
817 "-I$(BASH_HEADERS)/include "
820 ;; Install to PREFIX/lib/bash to match Bash
821 ;; 4.4's search path.
823 "libdir = @libdir@/bash\n"))
826 (native-inputs `(("emacs" ,emacs-minimal)
828 ("bash:include" ,bash "include")
829 ("libuuid" ,util-linux)))
831 ;; TODO: Add more optional inputs.
832 (inputs `(("curl" ,curl)
833 ("libgcrypt" ,libgcrypt)
835 (synopsis "Manipulate plain text files as databases")
837 "GNU Recutils is a set of tools and libraries for creating and
838 manipulating text-based, human-editable databases. Despite being text-based,
839 databases created with Recutils carry all of the expected features such as
840 unique fields, primary keys, time stamps and more. Many different field
841 types are supported, as is encryption.")
842 (license license:gpl3+)
843 (home-page "https://www.gnu.org/software/recutils/")))
845 (define-public rocksdb
851 (uri (string-append "https://github.com/facebook/rocksdb"
852 "/archive/v" version ".tar.gz"))
853 (file-name (string-append name "-" version ".tar.gz"))
856 "1jcwgsjhk4hdfr2wf549blkgb89vwcdb5i2ahhqs6zf3mm20i3bf"))
857 (modules '((guix build utils)))
860 ;; TODO: unbundle gtest.
861 (delete-file "build_tools/gnu_parallel")
862 (substitute* "Makefile"
863 (("build_tools/gnu_parallel") "parallel"))
865 (build-system gnu-build-system)
867 `(#:make-flags (list "CC=gcc" "V=1"
868 ;; Ceph requires that RTTI is enabled.
870 (string-append "INSTALL_PATH="
871 (assoc-ref %outputs "out"))
873 ;; Running the full test suite takes hours and require
874 ;; a lot of disk space. Instead we only run a subset
875 ;; (see .travis.yml and Makefile).
876 "ROCKSDBTESTS_END=db_tailing_iter_test")
877 #:test-target "check_some"
878 ;; Many tests fail on 32-bit platforms. There are multiple reports about
879 ;; this upstream, but it's not going to be supported any time soon.
880 #:tests? (let ((system ,(or (%current-target-system)
882 (or (string-prefix? "x86_64-linux" system)
883 (string-prefix? "aarch64-linux" system)))
885 (modify-phases %standard-phases
886 (add-after 'unpack 'patch-Makefile
888 (substitute* "Makefile"
889 ;; Don't depend on the static library when installing.
890 (("install: install-static")
891 "install: install-shared")
892 (("#!/bin/sh") (string-append "#!" (which "sh"))))
895 ;; The default target is only needed for tests and built on demand.
897 (add-before 'check 'disable-optimizations
899 ;; Prevent the build from passing '-march=native' to the compiler.
900 (setenv "PORTABLE" "1")
902 (add-before 'check 'disable-failing-tests
904 (substitute* "Makefile"
905 ;; These tests reliably fail due to "Too many open files".
906 (("^[[:blank:]]+env_test[[:blank:]]+\\\\") "\\")
907 (("^[[:blank:]]+persistent_cache_test[[:blank:]]+\\\\") "\\"))
909 (add-after 'check 'build
910 ;; The default build target is a debug build for tests. The
911 ;; install target depends on the "shared_lib" release target
912 ;; so we build it here for clarity.
913 (lambda* (#:key (make-flags '()) parallel-build? #:allow-other-keys)
914 (apply invoke "make" "shared_lib"
915 `(,@(if parallel-build?
916 `("-j" ,(number->string (parallel-job-count)))
920 `(("parallel" ,parallel)
928 ("jemalloc" ,jemalloc)
932 (home-page "http://rocksdb.org/")
933 (synopsis "Persistent key-value store for fast storage")
935 "RocksDB is a library that forms the core building block for a fast
936 key-value server, especially suited for storing data on flash drives. It
937 has a @dfn{Log-Structured-Merge-Database} (LSM) design with flexible tradeoffs
938 between @dfn{Write-Amplification-Factor} (WAF), @dfn{Read-Amplification-Factor}
939 (RAF) and @dfn{Space-Amplification-Factor} (SAF). It has multi-threaded
940 compactions, making it specially suitable for storing multiple terabytes of
941 data in a single database. RocksDB is partially based on @code{LevelDB}.")
942 ;; RocksDB is dual licensed under GPL2 and ASL 2.0. Some header
943 ;; files carry the 3-clause BSD license.
944 (license (list license:gpl2 license:asl2.0 license:bsd-3))))
946 (define-public sparql-query
948 (name "sparql-query")
952 (uri (string-append "https://github.com/tialaramex/"
953 name "/archive/" version ".tar.gz"))
955 (base32 "0yq3k20472rv8npcc420q9ab6idy584g5y0q501d360k5q0ggr8w"))
956 (file-name (string-append name "-" version ".tar.gz"))))
957 (build-system gnu-build-system)
959 `(("readline" ,readline)
965 `(("pkg-config" ,pkg-config)))
967 `(#:make-flags '("CC=gcc")
969 (modify-phases %standard-phases
971 ;; The Makefile uses git to obtain versioning information. This phase
972 ;; substitutes the git invocation with the package version.
973 (add-after 'unpack 'remove-git-dependency
975 (substitute* "Makefile"
977 (string-append "gitrev = \"v" ,version "\"")))))
978 ;; The install phase of the Makefile assumes $PREFIX/usr/local/bin.
979 ;; This replacement does the same thing, except for using $PREFIX/bin
982 (lambda* (#:key outputs #:allow-other-keys)
983 (let* ((out (assoc-ref outputs "out"))
984 (bin (string-append out "/bin")))
985 (install-file "sparql-query" bin)
986 (system* "ln" "--symbolic"
987 (string-append bin "/sparql-query")
988 (string-append bin "/sparql-update")))))
990 (lambda* (#:key make-flags #:allow-other-keys)
992 (zero? (apply system* "make" `(,@make-flags "scan-test")))
993 (zero? (system "./scan-test"))))))))
994 (home-page "https://github.com/tialaramex/sparql-query/")
995 (synopsis "Command-line tool for accessing SPARQL endpoints over HTTP")
996 (description "Sparql-query is a command-line tool for accessing SPARQL
997 endpoints over HTTP. It has been intentionally designed to 'feel' similar to
998 tools for interrogating SQL databases. For example, you can enter a query over
999 several lines, using a semi-colon at the end of a line to indicate the end of
1000 your query. It also supports readline so that you can more easily recall and
1001 edit previous queries, even across sessions. It can be used non-interactively,
1002 for example from a shell script.")
1003 ;; Some files (like scan-sparql.c) contain a GPLv3+ license header, while
1004 ;; others (like sparql-query.c) contain a GPLv2+ license header.
1005 (license (list license:gpl3+))))
1007 (define-public sqlite
1013 (uri (let ((numeric-version
1014 (match (string-split version #\.)
1015 ((first-digit other-digits ...)
1016 (string-append first-digit
1019 (map (cut string-pad <> 2 #\0)
1022 (string-append "https://sqlite.org/2017/sqlite-autoconf-"
1023 numeric-version ".tar.gz")))
1026 "1qxvzdjwzw6k0kqjfabj86rnq87xdbwbca7laxxdhnh0fmkm3pfp"))))
1027 (build-system gnu-build-system)
1028 (inputs `(("readline" ,readline)))
1031 ;; Add -DSQLITE_SECURE_DELETE, -DSQLITE_ENABLE_UNLOCK_NOTIFY and
1032 ;; -DSQLITE_ENABLE_DBSTAT_VTAB to CFLAGS. GNU Icecat will refuse
1033 ;; to use the system SQLite unless these options are enabled.
1034 (list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
1035 "-DSQLITE_ENABLE_UNLOCK_NOTIFY "
1036 "-DSQLITE_ENABLE_DBSTAT_VTAB"))))
1037 (home-page "https://www.sqlite.org/")
1038 (synopsis "The SQLite database management system")
1040 "SQLite is a software library that implements a self-contained, serverless,
1041 zero-configuration, transactional SQL database engine. SQLite is the most
1042 widely deployed SQL database engine in the world. The source code for SQLite
1043 is in the public domain.")
1044 (license license:public-domain)))
1046 ;; This is used by Tracker.
1047 (define-public sqlite-with-fts5
1048 (package (inherit sqlite)
1049 (name "sqlite-with-fts5")
1051 (substitute-keyword-arguments (package-arguments sqlite)
1052 ((#:configure-flags flags)
1053 `(cons "--enable-fts5" ,flags))))))
1055 ;; This is used by Clementine.
1056 (define-public sqlite-with-fts3
1057 (package (inherit sqlite)
1058 (name "sqlite-with-fts3")
1060 (substitute-keyword-arguments (package-arguments sqlite)
1061 ((#:configure-flags flags)
1062 `(list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
1063 "-DSQLITE_ENABLE_UNLOCK_NOTIFY "
1064 "-DSQLITE_ENABLE_DBSTAT_VTAB "
1065 "-DSQLITE_ENABLE_FTS3 "
1066 "-DSQLITE_ENABLE_FTS3_PARENTHESIS "
1067 "-DSQLITE_ENABLE_FTS3_TOKENIZER")))))))
1075 (uri (string-append "https://www.samba.org/ftp/tdb/tdb-"
1079 "0a37jhpij8wr4f4pjqdlwnffy2l6a2vkqdpz1bqxj6v06cwbz8dl"))))
1080 (build-system gnu-build-system)
1083 (modify-phases %standard-phases
1085 (lambda* (#:key outputs #:allow-other-keys)
1086 (let ((out (assoc-ref outputs "out")))
1087 ;; The 'configure' script is a wrapper for Waf and
1088 ;; doesn't recognize things like '--enable-fast-install'.
1089 (zero? (system* "./configure"
1090 (string-append "--prefix=" out)))))))))
1092 `(;; TODO: Build the documentation.
1093 ;; ("docbook-xsl" ,docbook-xsl)
1094 ;; ("libxml2" ,libxml2)
1095 ;; ("libxslt" ,libxslt)
1096 ("python" ,python-2))) ;for the Waf build system
1097 (home-page "https://tdb.samba.org/")
1098 (synopsis "Trivial database")
1100 "TDB is a Trivial Database. In concept, it is very much like GDBM,
1101 and BSD's DB except that it allows multiple simultaneous writers and uses
1102 locking internally to keep writers from trampling on each other. TDB is also
1104 (license license:lgpl3+)))
1106 (define-public perl-dbi
1113 "mirror://cpan/authors/id/T/TI/TIMB/DBI-"
1117 "1ikbsb6sb0bd2m1dqknl4vx7ikmnd41y0xq8np1l40g8jcjp2mr5"))))
1118 (build-system perl-build-system)
1119 (synopsis "Database independent interface for Perl")
1120 (description "This package provides an database interface for Perl.")
1121 (home-page "http://search.cpan.org/dist/DBI")
1122 (license license:perl-license)))
1124 (define-public perl-dbix-class
1126 (name "perl-dbix-class")
1127 (version "0.082841")
1131 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
1132 "DBIx-Class-" version ".tar.gz"))
1135 "1gf3hgv8f9rnr8bl4ljgsqk4aliphmvljhsk4282kvdc4mcgh1fp"))))
1136 (build-system perl-build-system)
1138 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
1139 ("perl-file-temp" ,perl-file-temp)
1140 ("perl-module-install" ,perl-module-install)
1141 ("perl-package-stash" ,perl-package-stash)
1142 ("perl-test-deep" ,perl-test-deep)
1143 ("perl-test-exception" ,perl-test-exception)
1144 ("perl-test-warn" ,perl-test-warn)))
1146 `(("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1147 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1148 ("perl-class-inspector" ,perl-class-inspector)
1149 ("perl-config-any" ,perl-config-any)
1150 ("perl-context-preserve" ,perl-context-preserve)
1151 ("perl-data-dumper-concise" ,perl-data-dumper-concise)
1152 ("perl-data-page" ,perl-data-page)
1153 ("perl-dbi" ,perl-dbi)
1154 ("perl-devel-globaldestruction" ,perl-devel-globaldestruction)
1155 ("perl-hash-merge" ,perl-hash-merge)
1156 ("perl-module-find" ,perl-module-find)
1157 ("perl-moo" ,perl-moo)
1158 ("perl-mro-compat" ,perl-mro-compat)
1159 ("perl-namespace-clean" ,perl-namespace-clean)
1160 ("perl-path-class" ,perl-path-class)
1161 ("perl-scalar-list-utils" ,perl-scalar-list-utils)
1162 ("perl-scope-guard" ,perl-scope-guard)
1163 ("perl-sql-abstract" ,perl-sql-abstract)
1164 ("perl-sub-name" ,perl-sub-name)
1165 ("perl-text-balanced" ,perl-text-balanced)
1166 ("perl-try-tiny" ,perl-try-tiny)))
1167 (home-page "http://search.cpan.org/dist/DBIx-Class")
1168 (synopsis "Extensible and flexible object <-> relational mapper")
1169 (description "An SQL to OO mapper with an object API inspired by
1170 Class::DBI (with a compatibility layer as a springboard for porting) and a
1171 resultset API that allows abstract encapsulation of database operations. It
1172 aims to make representing queries in your code as perl-ish as possible while
1173 still providing access to as many of the capabilities of the database as
1174 possible, including retrieving related records from multiple tables in a
1175 single query, \"JOIN\", \"LEFT JOIN\", \"COUNT\", \"DISTINCT\", \"GROUP BY\",
1176 \"ORDER BY\" and \"HAVING\" support.")
1177 (license license:perl-license)))
1179 (define-public perl-dbix-class-cursor-cached
1181 (name "perl-dbix-class-cursor-cached")
1182 (version "1.001004")
1186 (uri (string-append "mirror://cpan/authors/id/A/AR/ARCANEZ/"
1187 "DBIx-Class-Cursor-Cached-" version ".tar.gz"))
1190 "09b2jahn2x12qm4f7qm1jzsxbz7qn1czp6a3fnl5l2i3l4r5421p"))))
1191 (build-system perl-build-system)
1193 `(("perl-cache-cache" ,perl-cache-cache)
1194 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1195 ("perl-module-install" ,perl-module-install)))
1197 `(("perl-carp-clan" ,perl-carp-clan)
1198 ("perl-dbix-class" ,perl-dbix-class)))
1199 (home-page "http://search.cpan.org/dist/DBIx-Class-Cursor-Cached")
1200 (synopsis "Cursor with built-in caching support")
1201 (description "DBIx::Class::Cursor::Cached provides a cursor class with
1202 built-in caching support.")
1203 (license license:perl-license)))
1205 (define-public perl-dbix-class-introspectablem2m
1207 (name "perl-dbix-class-introspectablem2m")
1208 (version "0.001002")
1212 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1213 "DBIx-Class-IntrospectableM2M-" version ".tar.gz"))
1216 "1w47rh2241iy5x3a9bqsyd5kdp9sk43dksr99frzv4qn4jsazfn6"))))
1217 (build-system perl-build-system)
1219 `(("perl-module-install" ,perl-module-install)))
1221 `(("perl-dbix-class" ,perl-dbix-class)))
1222 (home-page "http://search.cpan.org/dist/DBIx-Class-IntrospectableM2M")
1223 (synopsis "Introspect many-to-many relationships")
1224 (description "Because the many-to-many relationships are not real
1225 relationships, they can not be introspected with DBIx::Class. Many-to-many
1226 relationships are actually just a collection of convenience methods installed
1227 to bridge two relationships. This DBIx::Class component can be used to store
1228 all relevant information about these non-relationships so they can later be
1229 introspected and examined.")
1230 (license license:perl-license)))
1232 (define-public perl-dbix-class-schema-loader
1234 (name "perl-dbix-class-schema-loader")
1239 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1240 "DBIx-Class-Schema-Loader-" version ".tar.gz"))
1243 "0r57fv71ypxafb85cpxph1hdqii7ipjwvc19yb6fpkvq2ggcssg8"))))
1244 (build-system perl-build-system)
1246 `(("perl-config-any" ,perl-config-any)
1247 ("perl-config-general" ,perl-config-general)
1248 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1249 ("perl-dbix-class-introspectablem2m" ,perl-dbix-class-introspectablem2m)
1250 ("perl-module-install" ,perl-module-install)
1251 ("perl-moose" ,perl-moose)
1252 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
1253 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
1254 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1255 ("perl-test-deep" ,perl-test-deep)
1256 ("perl-test-differences" ,perl-test-differences)
1257 ("perl-test-exception" ,perl-test-exception)
1258 ("perl-test-pod" ,perl-test-pod)
1259 ("perl-test-warn" ,perl-test-warn)))
1261 `(("perl-class-unload" ,perl-class-unload)
1262 ("perl-class-inspector" ,perl-class-inspector)
1263 ("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1264 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1265 ("perl-carp-clan" ,perl-carp-clan)
1266 ("perl-data-dump" ,perl-data-dump)
1267 ("perl-dbix-class" ,perl-dbix-class)
1268 ("perl-hash-merge" ,perl-hash-merge)
1269 ("perl-list-moreutils" ,perl-list-moreutils)
1270 ("perl-lingua-en-inflect-phrase" ,perl-lingua-en-inflect-phrase)
1271 ("perl-lingua-en-inflect-number" ,perl-lingua-en-inflect-number)
1272 ("perl-lingua-en-tagger" ,perl-lingua-en-tagger)
1273 ("perl-namespace-clean" ,perl-namespace-clean)
1274 ("perl-mro-compat" ,perl-mro-compat)
1275 ("perl-scope-guard" ,perl-scope-guard)
1276 ("perl-string-camelcase" ,perl-string-camelcase)
1277 ("perl-string-toidentifier-en" ,perl-string-toidentifier-en)
1278 ("perl-sub-name" ,perl-sub-name)
1279 ("perl-try-tiny" ,perl-try-tiny)))
1280 (arguments `(#:tests? #f)) ;TODO: t/20invocations.t fails
1281 (home-page "http://search.cpan.org/dist/DBIx-Class-Schema-Loader")
1282 (synopsis "Create a DBIx::Class::Schema based on a database")
1283 (description "DBIx::Class::Schema::Loader automates the definition of a
1284 DBIx::Class::Schema by scanning database table definitions and setting up the
1285 columns, primary keys, unique constraints and relationships.")
1286 (license license:perl-license)))
1288 (define-public perl-dbd-pg
1290 (name "perl-dbd-pg")
1295 (uri (string-append "mirror://cpan/authors/id/T/TU/TURNSTEP/"
1296 "DBD-Pg-" version ".tar.gz"))
1299 "0gkqlvbmzbdm0g4k328nlkjdg3wrjm5i2n9jxj1i8sqxkm79rylz"))))
1300 (build-system perl-build-system)
1302 `(("perl-dbi" ,perl-dbi)))
1304 `(("perl-dbi" ,perl-dbi)
1305 ("postgresql" ,postgresql)))
1306 (home-page "http://search.cpan.org/dist/DBD-Pg")
1307 (synopsis "DBI PostgreSQL interface")
1308 (description "This package provides a PostgreSQL driver for the Perl5
1309 @dfn{Database Interface} (DBI).")
1310 (license license:perl-license)))
1312 (define-public perl-dbd-mysql
1314 (name "perl-dbd-mysql")
1319 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1320 "DBD-mysql-" version ".tar.gz"))
1323 "16bg7l28n65ngi1abjxvwk906a80i2vd5vzjn812dx8phdg8d7v2"))
1324 (patches (search-patches "perl-dbd-mysql-CVE-2017-10788.patch"))))
1325 (build-system perl-build-system)
1326 ;; Tests require running MySQL server
1327 (arguments `(#:tests? #f))
1329 `(("perl-dbi" ,perl-dbi)
1331 (home-page "http://search.cpan.org/dist/DBD-mysql")
1332 (synopsis "DBI MySQL interface")
1333 (description "This package provides a MySQL driver for the Perl5
1334 @dfn{Database Interface} (DBI).")
1335 (license license:perl-license)))
1337 (define-public perl-dbd-sqlite
1339 (name "perl-dbd-sqlite")
1344 "mirror://cpan/authors/id/I/IS/ISHIGAKI/DBD-SQLite-"
1348 "0sbj9lx9syzpknvjv8cz9jndg32qz775vy2prgq305npv3dsca9r"))))
1349 (build-system perl-build-system)
1350 (inputs `(("sqlite" ,sqlite)))
1351 (propagated-inputs `(("perl-dbi" ,perl-dbi)))
1352 (synopsis "SQlite interface for Perl")
1353 (description "DBD::SQLite is a Perl DBI driver for SQLite, that includes
1354 the entire thing in the distribution. So in order to get a fast transaction
1355 capable RDBMS working for your Perl project you simply have to install this
1356 module, and nothing else.")
1357 (license license:perl-license)
1358 (home-page "http://search.cpan.org/~ishigaki/DBD-SQLite/lib/DBD/SQLite.pm")))
1360 (define-public perl-sql-abstract
1362 (name "perl-sql-abstract")
1367 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1368 "SQL-Abstract-" version ".tar.gz"))
1371 "1aycggrvppy2zgkwwn85jkdz93n5gsx4dambrjk67k5067hayi4z"))))
1372 (build-system perl-build-system)
1374 `(("perl-module-install" ,perl-module-install)
1375 ("perl-test-deep" ,perl-test-deep)
1376 ("perl-test-exception" ,perl-test-exception)
1377 ("perl-test-warn" ,perl-test-warn)))
1379 `(("perl-hash-merge" ,perl-hash-merge)
1380 ("perl-moo" ,perl-moo)
1381 ("perl-mro-compat" ,perl-mro-compat)
1382 ("perl-text-balanced" ,perl-text-balanced)))
1383 (home-page "http://search.cpan.org/dist/SQL-Abstract")
1384 (synopsis "Generate SQL from Perl data structures")
1385 (description "This module was inspired by the excellent DBIx::Abstract.
1386 While based on the concepts used by DBIx::Abstract, the concepts used have
1387 been modified to make the SQL easier to generate from Perl data structures.
1388 The underlying idea is for this module to do what you mean, based on the data
1389 structures you provide it, so that you don't have to modify your code every
1390 time your data changes.")
1391 (license license:perl-license)))
1393 (define-public perl-sql-splitstatement
1395 (name "perl-sql-splitstatement")
1400 (uri (string-append "mirror://cpan/authors/id/E/EM/EMAZEP/"
1401 "SQL-SplitStatement-" version ".tar.gz"))
1404 "0bqg45k4c9qkb2ypynlwhpvzsl4ssfagmsalys18s5c79ps30z7p"))))
1405 (build-system perl-build-system)
1407 `(("perl-test-exception" ,perl-test-exception)))
1409 `(("perl-class-accessor" ,perl-class-accessor)
1410 ("perl-list-moreutils" ,perl-list-moreutils)
1411 ("perl-regexp-common" ,perl-regexp-common)
1412 ("perl-sql-tokenizer" ,perl-sql-tokenizer)))
1413 (home-page "http://search.cpan.org/dist/SQL-SplitStatement")
1414 (synopsis "Split SQL code into atomic statements")
1415 (description "This module tries to split any SQL code, even including
1416 non-standard extensions, into the atomic statements it is composed of.")
1417 (license license:perl-license)))
1419 (define-public perl-sql-tokenizer
1421 (name "perl-sql-tokenizer")
1426 (uri (string-append "mirror://cpan/authors/id/I/IZ/IZUT/"
1427 "SQL-Tokenizer-" version ".tar.gz"))
1430 "1qa2dfbzdlr5qqdam9yn78z5w3al5r8577x06qan8wv58ay6ka7s"))))
1431 (build-system perl-build-system)
1432 (home-page "http://search.cpan.org/dist/SQL-Tokenizer")
1433 (synopsis "SQL tokenizer")
1434 (description "SQL::Tokenizer is a tokenizer for SQL queries. It does not
1435 claim to be a parser or query verifier. It just creates sane tokens from a
1437 (license license:perl-license)))
1439 (define-public unixodbc
1447 "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-"
1450 (base32 "0f8y88rcc2akjvjv5y66yx7k0ms9h1s0vbcfy25j93didflhj59f"))))
1451 (build-system gnu-build-system)
1452 (synopsis "Data source abstraction library")
1453 (description "Unixodbc is a library providing an API with which to access
1454 data sources. Data sources include SQL Servers and any software with an ODBC
1456 (license license:lgpl2.1+)
1457 ;; COPYING contains copy of lgpl2.1 - but copyright notices just say "LGPL"
1458 (home-page "http://www.unixodbc.org")))
1460 (define-public unqlite
1466 ;; Contains bug fixes against the official release, and has an
1467 ;; autotooled build system.
1468 (uri (string-append "https://github.com/aidin36/tocc/releases/"
1470 "unqlite-unofficial-" version ".tar.gz"))
1473 "1sbpvhg15gadq0mpcy16q7k3rkg4b4dicpnn5xifpkpn02sqik3s"))))
1474 (build-system gnu-build-system)
1475 (arguments `(#:tests? #f)) ;No check target
1476 (home-page "http://www.unqlite.org")
1477 (synopsis "In-memory key/value and document store")
1479 "UnQLite is an in-process software library which implements a
1480 self-contained, serverless, zero-configuration, transactional NoSQL
1481 database engine. UnQLite is a document store database similar to
1482 MongoDB, Redis, CouchDB, etc. as well as a standard Key/Value store
1483 similar to BerkeleyDB, LevelDB, etc.")
1484 (license license:bsd-2)))
1486 (define-public redis
1492 (uri (string-append "http://download.redis.io/releases/redis-"
1496 "04s8cgvwjj1979s3hg8zkwc9pyn3jkjpz5zidp87kfcipifr385i"))))
1497 (build-system gnu-build-system)
1499 '(#:tests? #f ; tests related to master/slave and replication fail
1500 #:phases (modify-phases %standard-phases
1501 (delete 'configure))
1502 #:make-flags `("CC=gcc"
1505 ,(string-append "PREFIX="
1506 (assoc-ref %outputs "out")))))
1507 (synopsis "Key-value cache and store")
1508 (description "Redis is an advanced key-value cache and store. Redis
1509 supports many data structures including strings, hashes, lists, sets, sorted
1510 sets, bitmaps and hyperloglogs.")
1511 (home-page "http://redis.io/")
1512 (license license:bsd-3)))
1514 (define-public kyotocabinet
1516 (name "kyotocabinet")
1520 (uri (string-append "http://fallabs.com/kyotocabinet/pkg/"
1521 name "-" version ".tar.gz"))
1524 "0g6js20x7vnpq4p8ghbw3mh9wpqksya9vwhzdx6dnlf354zjsal1"))))
1525 (build-system gnu-build-system)
1529 "--disable-opt" ;"-march=native". XXX this also turns off -O0.
1530 (string-append "LDFLAGS=-Wl,-rpath="
1531 (assoc-ref %outputs "out") "/lib"))))
1532 (inputs `(("zlib" ,zlib)))
1533 (home-page "http://fallabs.com/kyotocabinet/")
1535 "Kyoto Cabinet is a modern implementation of the DBM database")
1537 "Kyoto Cabinet is a standalone file-based database that supports Hash
1538 and B+ Tree data storage models. It is a fast key-value lightweight
1539 database and supports many programming languages. It is a NoSQL database.")
1540 (license license:gpl3+)))
1542 (define-public tokyocabinet
1544 (name "tokyocabinet")
1549 (uri (string-append "http://fallabs.com/tokyocabinet/"
1550 name "-" version ".tar.gz"))
1553 "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0"))))
1554 (build-system gnu-build-system)
1557 (list "--enable-pthread" "--enable-off64" "--enable-fastest"
1558 (string-append "LDFLAGS=-Wl,-rpath="
1559 (assoc-ref %outputs "out") "/lib"))))
1562 (home-page "http://fallabs.com/tokyocabinet/")
1563 (synopsis "Tokyo Cabinet is a modern implementation of the DBM database")
1565 "Tokyo Cabinet is a library of routines for managing a database.
1566 The database is a simple data file containing records, each is a pair of a
1567 key and a value. Every key and value is serial bytes with variable length.
1568 Both binary data and character string can be used as a key and a value.
1569 There is neither concept of data tables nor data types. Records are
1570 organized in hash table, B+ tree, or fixed-length array.")
1571 (license license:lgpl2.1+)))
1573 (define-public wiredtiger
1580 "http://source.wiredtiger.com/releases/wiredtiger-"
1581 version ".tar.bz2"))
1584 "0krwnb2zfbhvjaskwl875qzd3y626s84zcciq2mxr5c5riw3yh6s"))))
1585 (build-system gnu-build-system)
1587 '(#:configure-flags '("--enable-lz4" "--with-builtins=snappy,zlib")
1589 (modify-phases %standard-phases
1590 (add-before 'check 'disable-test/fops
1592 ;; XXX: timed out after 3600 seconds of silence
1593 (substitute* "Makefile"
1599 ("snappy" ,snappy)))
1600 (home-page "http://source.wiredtiger.com/")
1601 (synopsis "NoSQL data engine")
1603 "WiredTiger is an extensible platform for data management. It supports
1604 row-oriented storage (where all columns of a row are stored together),
1605 column-oriented storage (where columns are stored in groups, allowing for
1606 more efficient access and storage of column subsets) and log-structured merge
1607 trees (LSM), for sustained throughput under random insert workloads.")
1608 (license license:gpl3) ; or GPL-2
1609 ;; configure.ac: WiredTiger requires a 64-bit build.
1610 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))))
1612 (define-public guile-wiredtiger
1614 (name "guile-wiredtiger")
1619 (url "https://framagit.org/a-guile-mind/guile-wiredtiger.git")
1620 (commit "070ed68139d99c279f058a6c293f00292d35dbd7")))
1621 (file-name (string-append name "-" version "-checkout"))
1624 "14rna97wsylajzxfif95wnblq85csgcfc666gh5dl0ssgd7x8llh"))))
1625 (build-system gnu-build-system)
1627 '(#:parallel-tests? #f ;; tests can't be run in parallel, yet.
1629 (list (string-append "--with-libwiredtiger-prefix="
1630 (assoc-ref %build-inputs "wiredtiger")))
1631 #:make-flags '("GUILE_AUTO_COMPILE=0")
1633 (modify-phases %standard-phases
1634 (add-after 'unpack 'bootstrap
1636 (invoke "sh" "bootstrap"))))))
1637 ;; TODO: Remove microkanren.scm when we have a separate package
1640 `(("autoconf" ,autoconf)
1641 ("automake" ,automake)
1642 ("pkg-config" ,pkg-config)))
1644 `(("wiredtiger" ,wiredtiger)
1645 ("guile" ,guile-2.2)))
1647 `(("guile-lib" ,guile-lib))) ;for (htmlprag)
1648 (synopsis "WiredTiger bindings for GNU Guile")
1650 "This package provides Guile bindings to the WiredTiger ``NoSQL''
1651 database. Various higher level database abstractions.")
1652 (home-page "https://framagit.org/a-guile-mind/guile-wiredtiger")
1653 (license license:gpl3+)))
1655 (define-public perl-db-file
1657 (name "perl-db-file")
1663 "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
1668 "11fks42kgscpia0mxx4lc9krm7q4gv6w7m5h3m2jr3dl7viv36hn"))))
1669 (build-system perl-build-system)
1670 (inputs `(("bdb" ,bdb)))
1671 (native-inputs `(("perl-test-pod" ,perl-test-pod)))
1673 `(#:phases (modify-phases %standard-phases
1675 'configure 'modify-config.in
1676 (lambda* (#:key inputs #:allow-other-keys)
1677 (substitute* "config.in"
1678 (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
1680 (home-page "http://search.cpan.org/dist/DB_File")
1682 "Perl5 access to Berkeley DB version 1.x")
1684 "The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
1685 (license license:perl-license)))
1693 (uri (string-append "https://github.com/LMDB/lmdb/archive/"
1694 "LMDB_" version ".tar.gz"))
1697 "0a7a8535csrvw71mrgx680m5d17bnxmmhcccij30idifi1cpi4pk"))))
1698 (build-system gnu-build-system)
1700 `(#:test-target "test"
1702 (modify-phases %standard-phases
1704 (lambda* (#:key outputs #:allow-other-keys)
1705 (chdir (string-append
1706 (getenv "PWD") "/lmdb-LMDB_" ,version "/libraries/liblmdb"))
1707 (substitute* "Makefile"
1708 (("/usr/local") (assoc-ref outputs "out")))
1710 (home-page "https://symas.com/products/lightning-memory-mapped-database")
1711 (synopsis "Lightning Memory-Mapped Database library")
1713 "The @dfn{Lightning Memory-Mapped Database} (LMDB) is a high-performance
1714 transactional database. Unlike more complex relational databases, LMDB handles
1715 only key-value pairs (stored as arbitrary byte arrays) and relies on the
1716 underlying operating system for caching and locking, keeping the code small and
1718 The use of ‘zero-copy’ memory-mapped files combines the persistence of classic
1719 disk-based databases with high read performance that scales linearly over
1720 multiple cores. The size of each database is limited only by the size of the
1721 virtual address space — not physical RAM.")
1722 (license license:openldap2.8)))
1724 (define-public libpqxx
1731 "http://pqxx.org/download/software/libpqxx/"
1732 name "-" version ".tar.gz"))
1735 "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09"))))
1736 (build-system gnu-build-system)
1738 `(("python" ,python-2)))
1739 (inputs `(("postgresql" ,postgresql)))
1741 `(#:tests? #f ; # FAIL: 1
1743 (modify-phases %standard-phases
1744 (add-before 'configure 'fix-sed-command
1746 ;; Newer sed versions error out if double brackets are not used.
1747 (substitute* "configure"
1748 (("\\[:space:\\]") "[[:space:]]"))
1750 (synopsis "C++ connector for PostgreSQL")
1752 "Libpqxx is a C++ library to enable user programs to communicate with the
1753 PostgreSQL database back-end. The database back-end can be local or it may be
1754 on another machine, accessed via TCP/IP.")
1755 (home-page "http://pqxx.org/")
1756 (license license:bsd-3)))
1758 (define-public python-peewee
1760 (name "python-peewee")
1765 (uri (pypi-uri "peewee" version))
1768 "10f2mrd5hw6rjklrzaix2lsxlgc8vx3xak54arcy6yd791zhchi3"))))
1769 (build-system python-build-system)
1771 `(#:tests? #f)) ; Fails to import test data
1773 `(("python-cython" ,python-cython)))
1774 (home-page "https://github.com/coleifer/peewee/")
1775 (synopsis "Small object-relational mapping utility")
1777 "Peewee is a simple and small ORM (object-relation mapping) tool. Peewee
1778 handles converting between pythonic values and those used by databases, so you
1779 can use Python types in your code without having to worry. It has built-in
1780 support for sqlite, mysql and postgresql. If you already have a database, you
1781 can autogenerate peewee models using @code{pwiz}, a model generator.")
1782 (license license:expat)))
1784 (define-public python2-peewee
1785 (package-with-python2 python-peewee))
1787 (define-public sqlcipher
1794 (uri (string-append "https://github.com/sqlcipher/" name
1795 "/archive/v" version ".tar.gz"))
1797 (base32 "1gv58dlbpzrmznly52yqbxgvii0ib88zr3aszla1bsypwjr6flff"))
1798 (file-name (string-append name "-" version ".tar.gz"))))
1799 (build-system gnu-build-system)
1801 `(("libcrypto" ,openssl)
1802 ("libtcl8.6" ,tcl))) ; required for running the tests
1807 '("--enable-tempstore=yes"
1808 "CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_ENABLE_FTS3"
1809 "LDFLAGS=-lcrypto -ltcl8.6"
1811 ;; tests cannot be run from the Makefile
1812 ;; see: <https://github.com/sqlcipher/sqlcipher/issues/172>
1813 #:test-target "testfixture"
1815 (modify-phases %standard-phases
1816 (add-before 'check 'build-test-runner
1817 (assoc-ref %standard-phases 'check))
1821 (system* "./testfixture" "test/crypto.test")))))))
1822 (home-page "https://www.zetetic.net/sqlcipher/")
1824 "Library providing transparent encryption of SQLite database files")
1825 (description "SQLCipher is an implementation of SQLite, extended to
1826 provide transparent 256-bit AES encryption of database files. Pages are
1827 encrypted before being written to disk and are decrypted when read back. It’s
1828 well suited for protecting embedded application databases and for mobile
1831 ;; src/{crypto.c,crypto_impl.c,crypto.h,crypto_cc.c,crypto_libtomcrypt.c},
1832 ;; src/{crypto_openssl.c,sqlcipher.h}, tool/crypto-speedtest.tcl,
1833 ;; test/crypto.test are licensed under a 3-clause BSD license. All other
1834 ;; source files are in the public domain.
1835 (license (list license:public-domain license:bsd-3))))
1837 (define-public python-pyodbc-c
1839 (name "python-pyodbc-c")
1844 (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
1845 "archive.tar.gz?ref=v" version))
1848 "05aq2297k779xidmxcwkrrxjvj1bh2q7d9a1rcjv6zr15y764ga9"))
1849 (file-name (string-append name "-" version ".tar.gz"))))
1850 (build-system python-build-system)
1852 `(("unixodbc" ,unixodbc)))
1854 `(;; No unit tests exist.
1856 (home-page "https://github.com/mkleehammer/pyodbc")
1857 (synopsis "Python ODBC Library")
1858 (description "@code{python-pyodbc-c} provides a Python DB-API driver
1860 (license (license:x11-style "file://LICENSE.TXT"))))
1862 (define-public python2-pyodbc-c
1863 (package-with-python2 python-pyodbc-c))
1865 (define-public python-pyodbc
1867 (name "python-pyodbc")
1872 (uri (pypi-uri "pyodbc" version))
1875 "0a83zwz3h1agshnsc6r7al6q83222w8601gpzzzjvjz5m56ghmcn"))
1876 (file-name (string-append name "-" version ".tar.gz"))))
1877 (build-system python-build-system)
1879 `(("unixodbc" ,unixodbc)))
1881 `(;; No unit tests exist.
1883 (home-page "https://github.com/mkleehammer/pyodbc")
1884 (synopsis "Python ODBC Library")
1885 (description "@code{python-pyodbc} provides a Python DB-API driver
1887 (license (license:x11-style "file:///LICENSE.TXT"))))
1889 (define-public python2-pyodbc
1890 (package-with-python2 python-pyodbc))
1892 (define-public mdbtools
1899 (uri (string-append "https://github.com/brianb/mdbtools/archive/"
1903 "05hbmxcq173kzb899gdi3bz2qcc1vi3n1qbbkwpsvrq7ggf11wyw"))
1904 (file-name (string-append name "-" version ".tar.gz"))))
1905 (build-system gnu-build-system)
1909 `(("autoconf" ,autoconf)
1910 ("automake" ,automake)
1911 ("libtool" ,libtool)
1912 ("pkg-config" ,pkg-config)
1913 ("txt2man" ,txt2man)
1917 (modify-phases %standard-phases
1918 (add-after 'unpack 'autoreconf
1920 (zero? (system* "autoreconf" "-vfi")))))))
1921 (home-page "http://mdbtools.sourceforge.net/")
1922 (synopsis "Read Microsoft Access databases")
1923 (description "MDB Tools is a set of tools and applications to read the
1924 proprietary MDB file format used in Microsoft's Access database package. This
1925 includes programs to export schema and data from Microsoft's Access database
1926 file format to other databases such as MySQL, Oracle, Sybase, PostgreSQL,
1927 etc., and an SQL engine for performing simple SQL queries.")
1928 (license (list license:lgpl2.0
1931 (define-public python-lmdb
1933 (name "python-lmdb")
1937 (uri (pypi-uri "lmdb" version))
1940 "0xdpb298fyl68acadbwv5801wcwfpnhc7sm4bnrq1x4bd5dhhsql"))
1941 (modules '((guix build utils)))
1943 ;; Delete bundled lmdb source files.
1944 '(for-each delete-file (list "lib/lmdb.h"
1948 (build-system python-build-system)
1953 (modify-phases %standard-phases
1954 (add-before 'build 'use-system-lmdb
1955 (lambda* (#:key inputs #:allow-other-keys)
1956 (let ((lmdb (assoc-ref inputs "lmdb")))
1957 (setenv "LMDB_FORCE_SYSTEM" "set")
1958 (setenv "LMDB_INCLUDEDIR" (string-append lmdb "/include"))
1959 (setenv "LMDB_LIBDIR" (string-append lmdb "/lib"))
1961 ;; Tests fail with: ‘lmdb.tool: Please specify environment (--env)’.
1963 (home-page "https://github.com/dw/py-lmdb")
1964 (synopsis "Python binding for the ‘Lightning’ database (LMDB)")
1966 "python-lmdb or py-lmdb is a Python binding for the @dfn{Lightning
1967 Memory-Mapped Database} (LMDB), a high-performance key-value store.")
1969 (list license:openldap2.8
1970 ;; ‘lib/win32/inttypes.h’ and ‘lib/win32-stdint/stdint.h’ are BSD-3,
1971 ;; but not actually needed on platforms currently supported by Guix.
1974 (define-public python2-lmdb
1975 (package-with-python2 python-lmdb))
1977 (define-public python-orator
1979 (name "python-orator")
1983 (uri (pypi-uri "orator" version))
1986 "14r58z64fdp76ixnvmi4lni762b405ynmsx6chr1qihs3yl9zn6c"))))
1987 (build-system python-build-system)
1990 (modify-phases %standard-phases
1991 (add-after 'unpack 'loosen-dependencies
1992 ;; Tests are not actually run since they are not included with the
1993 ;; distributed package, but dependencies are checked.
1995 (substitute* "setup.py"
1997 (("flexmock==0.9.7") "flexmock")
1998 ;; The pytest-mock package is out of date, so we remove minimum
1999 ;; version requirement.
2000 (("pytest-mock.*'") "pytest-mock'"))
2003 `(("python-pytest-mock" ,python-pytest-mock)
2004 ("python-pytest" ,python-pytest)
2005 ("python-flexmock" ,python-flexmock)))
2007 `(("python-backpack" ,python-backpack)
2008 ("python-blinker" ,python-blinker)
2009 ("python-cleo" ,python-cleo)
2010 ("python-faker" ,python-faker)
2011 ("python-inflection" ,python-inflection)
2012 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
2013 ("python-pendulum" ,python-pendulum)
2014 ("python-pyaml" ,python-pyaml)
2015 ("python-pygments" ,python-pygments)
2016 ("python-simplejson" ,python-simplejson)
2017 ("python-six" ,python-six)
2018 ("python-wrapt" ,python-wrapt)))
2019 (home-page "https://orator-orm.com/")
2020 (synopsis "ActiveRecord ORM for Python")
2022 "Orator provides a simple ActiveRecord-like Object Relational Mapping
2023 implementation for Python.")
2024 (license license:expat)
2025 (properties `((python2-variant . ,(delay python2-orator))))))
2027 (define-public python2-orator
2028 (package-with-python2 (strip-python2-variant python-orator)))
2030 (define-public virtuoso-ose
2032 (name "virtuoso-ose")
2038 "https://github.com/openlink/virtuoso-opensource/releases/"
2039 "download/v" version "/virtuoso-opensource-" version ".tar.gz"))
2041 (base32 "12dqam1gc1v93l0bj0vlpvjqppki6y1hqrlznywxnw0rrz9pb002"))))
2042 (build-system gnu-build-system)
2044 `(#:tests? #f ; Tests require a network connection.
2045 ;; TODO: Removing the libsrc/zlib source directory breaks the build.
2046 ;; This indicates that the internal zlib code may still be used.
2047 #:configure-flags '("--without-internal-zlib"
2048 "--with-readline")))
2050 `(("openssl" ,openssl)
2051 ("net-tools" ,net-tools)
2052 ("readline" ,readline)
2054 (home-page "http://vos.openlinksw.com/owiki/wiki/VOS/")
2055 (synopsis "Multi-model database system")
2056 (description "Virtuoso is a scalable cross-platform server that combines
2057 relational, graph, and document data management with web application server
2058 and web services platform functionality.")
2059 ;; configure: error: ... can only be build on 64bit platforms
2060 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))
2061 (license license:gpl2)))
2063 (define-public r-rmysql
2070 (uri (cran-uri "RMySQL" version))
2073 "0bmc7w5fnkjaf333sgc0hskiy332m9gmfaxg0yzkjxscpizdw43n"))))
2074 (properties `((upstream-name . "RMySQL")))
2075 (build-system r-build-system)
2077 `(("pkg-config" ,pkg-config)))
2079 `(("mariadb" ,mariadb)
2082 `(("r-dbi" ,r-dbi)))
2083 (home-page "https://github.com/r-dbi/RMySQL")
2084 (synopsis "Database interface and MySQL driver for R")
2086 "This package provides a DBI interface to MySQL / MariaDB. The RMySQL
2087 package contains an old implementation based on legacy code from S-PLUS which
2088 is being phased out. A modern MySQL client based on Rcpp is available from
2089 the RMariaDB package.")
2090 (license license:gpl2)))
2092 (define-public python-ccm
2099 (uri (pypi-uri "ccm" version))
2102 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
2103 (build-system python-build-system)
2105 `(("python-pyyaml" ,python-pyyaml)
2106 ;; Not listed in setup.py, but used in ccmlib/node.py for full
2108 ("python-psutil" ,python-psutil)
2109 ("python-six" ,python-six)))
2110 (home-page "https://github.com/pcmanus/ccm")
2111 (synopsis "Cassandra Cluster Manager for Apache Cassandra clusters on
2113 (description "Cassandra Cluster Manager is a development tool for testing
2114 local Cassandra clusters. It creates, launches and removes Cassandra clusters
2116 (license license:asl2.0)))
2118 (define-public python2-ccm
2119 (package-with-python2 python-ccm))
2121 (define-public python2-pysqlite
2123 (name "python2-pysqlite")
2128 (uri (pypi-uri "pysqlite" version))
2131 "1424gwq9sil2ffmnizk60q36vydkv8rxs6m7xs987kz8cdc37lqp"))))
2132 (build-system python-build-system)
2134 `(("sqlite" ,sqlite)))
2136 `(#:python ,python-2 ; incompatible with Python 3
2137 #:tests? #f)) ; no test target
2138 (home-page "https://github.com/ghaering/pysqlite")
2139 (synopsis "SQLite bindings for Python")
2141 "Pysqlite provides SQLite bindings for Python that comply to the
2142 Database API 2.0T.")
2143 (license license:zlib)))
2145 (define-public python-sqlalchemy
2147 (name "python-sqlalchemy")
2152 (uri (string-append "https://pypi.python.org/packages/source/S/"
2153 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
2156 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
2157 (build-system python-build-system)
2159 `(("python-cython" ,python-cython) ;for c extensions
2160 ("python-pytest" ,python-pytest)
2161 ("python-mock" ,python-mock))) ;for tests
2164 (modify-phases %standard-phases
2166 (lambda _ (zero? (system* "py.test")))))))
2167 (home-page "http://www.sqlalchemy.org")
2168 (synopsis "Database abstraction library")
2170 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
2171 gives application developers the full power and flexibility of SQL. It
2172 provides a full suite of well known enterprise-level persistence patterns,
2173 designed for efficient and high-performing database access, adapted into a
2174 simple and Pythonic domain language.")
2175 (license license:x11)))
2177 (define-public python2-sqlalchemy
2178 (package-with-python2 python-sqlalchemy))
2180 (define-public python-sqlalchemy-utils
2182 (name "python-sqlalchemy-utils")
2187 (uri (pypi-uri "SQLAlchemy-Utils" version))
2190 "1myn71dn8j74xglyh46f12sh8ywb7j0j732rzwq70kvwwnq32m73"))))
2191 (build-system python-build-system)
2193 '(#:tests? #f)) ; FIXME: Many tests require a running database server.
2195 ;; (modify-phases %standard-phases
2198 ;; (zero? (system* "py.test" "sqlalchemy_utils" "tests")))))
2200 `(("python-six" ,python-six)
2201 ("python-sqlalchemy" ,python-sqlalchemy)))
2203 `(("python-dateutil" ,python-dateutil)
2204 ("python-flexmock" ,python-flexmock)
2205 ("python-psycopg2" ,python-psycopg2)
2206 ("python-pytest" ,python-pytest)
2207 ("python-pytz" ,python-pytz)))
2208 (home-page "https://github.com/kvesteri/sqlalchemy-utils")
2209 (synopsis "Various utility functions for SQLAlchemy")
2211 "SQLAlchemy-utils provides various utility functions and custom data types
2212 for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
2214 You might also want to install the following optional dependencies:
2216 @item @code{python-passlib}
2217 @item @code{python-babel}
2218 @item @code{python-cryptography}
2219 @item @code{python-pytz}
2220 @item @code{python-psycopg2}
2221 @item @code{python-furl}
2222 @item @code{python-flask-babel}
2225 (license license:bsd-3)))
2227 (define-public python2-sqlalchemy-utils
2228 (package-with-python2 python-sqlalchemy-utils))
2230 (define-public python-alembic
2232 (name "python-alembic")
2237 (uri (pypi-uri "alembic" version))
2240 "0cm73vabrqj92v7a0wwvldj8j7bc7dwv358kvkk7p87gx7mm2a04"))))
2241 (build-system python-build-system)
2243 `(("python-mock" ,python-mock)
2244 ("python-pytest-cov" ,python-pytest-cov)))
2246 `(("python-dateutil" ,python-dateutil)
2247 ("python-sqlalchemy" ,python-sqlalchemy)
2248 ("python-mako" ,python-mako)
2249 ("python-editor" ,python-editor)))
2250 (home-page "https://bitbucket.org/zzzeek/alembic")
2252 "Database migration tool for SQLAlchemy")
2254 "Alembic is a lightweight database migration tool for usage with the
2255 SQLAlchemy Database Toolkit for Python.")
2256 (license license:expat)))
2258 (define-public python2-alembic
2259 (package-with-python2 python-alembic))
2261 (define-public python-pickleshare
2263 (name "python-pickleshare")
2268 (uri (pypi-uri "pickleshare" version))
2270 (base32 "0yvk14dzxk7g6qpr7iw23vzqbsr0dh4ij4xynkhnzpfz4xr2bac4"))))
2271 (build-system python-build-system)
2273 `(#:phases (modify-phases %standard-phases
2276 (invoke "pytest"))))))
2278 `(("python-pytest" ,python-pytest)))
2279 (home-page "https://github.com/vivainio/pickleshare")
2280 (synopsis "Tiny key value database with concurrency support")
2282 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
2283 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
2284 shelve, many processes can access the database simultaneously. Changing a
2285 value in database is immediately visible to other processes accessing the same
2286 database. Concurrency is possible because the values are stored in separate
2287 files. Hence the “database” is a directory where all files are governed by
2289 (properties `((python2-variant . ,(delay python2-pickleshare))))
2290 (license license:expat)))
2292 (define-public python2-pickleshare
2293 (let ((pickleshare (package-with-python2
2294 (strip-python2-variant python-pickleshare))))
2295 (package (inherit pickleshare)
2296 (propagated-inputs `(("python2-pathlib2" ,python2-pathlib2)
2297 ,@(package-propagated-inputs pickleshare))))))
2299 (define-public python-apsw
2301 (name "python-apsw")
2302 (version "3.20.1-r1")
2306 (uri (string-append "https://github.com/rogerbinns/apsw/archive/"
2308 (file-name (string-append "apsw-" version ".tar.gz"))
2311 "00ai7m2pqi26qaflhz314d8k5i3syw7xzr145fhfl0crhyh6adz2"))))
2312 (build-system python-build-system)
2314 `(("sqlite" ,sqlite)))
2317 (modify-phases %standard-phases
2320 (invoke "python" "setup.py" "build" "--enable-all-extensions")
2322 (add-after 'build 'build-test-helper
2324 (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
2325 "-I." "-Isqlite3" "src/testextension.c")
2328 (add-after 'install 'check
2329 (lambda* (#:key inputs outputs #:allow-other-keys)
2330 (add-installed-pythonpath inputs outputs)
2331 (invoke "python" "setup.py" "test")
2333 (home-page "https://github.com/rogerbinns/apsw/")
2334 (synopsis "Another Python SQLite Wrapper")
2335 (description "APSW is a Python wrapper for the SQLite
2336 embedded relational database engine. In contrast to other wrappers such as
2337 pysqlite it focuses on being a minimal layer over SQLite attempting just to
2338 translate the complete SQLite API into Python.")
2339 (license license:zlib)))
2341 (define-public python2-apsw
2342 (package-with-python2 python-apsw))
2344 (define-public python2-neo4j-driver
2346 (name "python2-neo4j-driver")
2347 ;; NOTE: When upgrading to 1.5.0, please add a python3 variant.
2351 (uri (pypi-uri "neo4j-driver" version))
2354 "011r1vh182p8mm83d8dz9rfnc3l7rf7fd00cyrbyfzi71jmc4g98"))))
2355 (build-system python-build-system)
2357 `(#:python ,python-2))
2358 (home-page "https://neo4j.com/developer/python/")
2359 (synopsis "Neo4j driver code written in Python")
2360 (description "This package provides the Neo4j Python driver that connects
2361 to the database using Neo4j's binary protocol. It aims to be minimal, while
2362 being idiomatic to Python.")
2363 (license license:asl2.0)))
2365 (define-public python2-py2neo
2367 (name "python2-py2neo")
2371 (uri (pypi-uri "py2neo" version))
2374 "1f1q95vqcvlc3nsc33p841swnjdcjazddlq2dzi3qfnjqjrajxw1"))))
2375 (build-system python-build-system)
2377 `(#:python ,python-2))
2378 (home-page "http://py2neo.org")
2379 (synopsis "Library and toolkit for working with Neo4j in Python")
2380 (description "This package provides a client library and toolkit for
2381 working with Neo4j from within Python applications and from the command
2382 line. The core library has no external dependencies and has been carefully
2383 designed to be easy and intuitive to use.")
2384 (license license:asl2.0)))
2386 (define-public python-psycopg2
2388 (name "python-psycopg2")
2393 (uri (pypi-uri "psycopg2" version))
2396 "0rda1j02ds6s28752fhmpwg761sh6jsxi1gpczqkrd28cki1cywv"))))
2397 (build-system python-build-system)
2399 ;; Tests would require a postgresql database "psycopg2_test"
2400 ;; and a running postgresql database management service.
2401 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
2403 `(("postgresql" ,postgresql))) ; libpq
2404 (home-page "http://initd.org/psycopg/")
2405 (synopsis "Python PostgreSQL adapter")
2407 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
2408 (license license:lgpl3+)))
2410 (define-public python2-psycopg2
2411 (package-with-python2 python-psycopg2))
2413 (define-public python-sadisplay
2415 (name "python-sadisplay")
2420 (uri (pypi-uri "sadisplay" version))
2423 "01d9lxhmgpb68gy8rd6zj6fcwp84n2qq210n1qsk3qbsir79bzh4"))))
2424 (build-system python-build-system)
2426 `(("python-sqlalchemy" ,python-sqlalchemy)))
2429 `(("python-nose" ,python-nose)))
2430 (home-page "https://bitbucket.org/estin/sadisplay")
2431 (synopsis "SQLAlchemy schema displayer")
2432 (description "This package provides a program to build Entity
2433 Relationship diagrams from a SQLAlchemy model (or directly from the
2435 (license license:bsd-3)))
2437 (define-public python2-sadisplay
2438 (package-with-python2 python-sadisplay))
2440 (define-public python-mysqlclient
2442 (name "python-mysqlclient")
2447 (uri (pypi-uri "mysqlclient" version))
2450 "0qkj570x4rbsblji6frvsvp2v1ap32dqzj1lq62zp9515ffsyaj5"))))
2451 (build-system python-build-system)
2453 `(("mariadb" ,mariadb)
2454 ("nose" ,python-nose)
2455 ("mock" ,python-mock)
2456 ("py.test" ,python-pytest)))
2460 ("openssl" ,openssl)))
2461 (home-page "https://github.com/PyMySQL/mysqlclient-python")
2462 (synopsis "MySQLdb is an interface to the popular MySQL database server for Python")
2463 (description "MySQLdb is an interface to the popular MySQL database server
2464 for Python. The design goals are:
2466 @item Compliance with Python database API version 2.0 [PEP-0249],
2467 @item Thread-safety,
2468 @item Thread-friendliness (threads will not block each other).
2470 (license license:gpl2)))
2472 (define-public python2-mysqlclient
2473 (package-with-python2 python-mysqlclient))
2475 (define-public python-hiredis
2477 (name "python-hiredis")
2482 (uri (pypi-uri "hiredis" version))
2485 "1dfm2k9l9zar9nw9fwmm74zrgraxdxs04vx9li56fjcf289qx5fa"))))
2486 (build-system python-build-system)
2490 (home-page "https://github.com/redis/hiredis-py")
2491 (synopsis "Python extension that wraps protocol parsing code in hiredis")
2492 (description "Python-hiredis is a python extension that wraps protocol
2493 parsing code in hiredis. It primarily speeds up parsing of multi bulk replies.")
2494 (license license:bsd-3)))
2496 (define-public python2-hiredis
2497 (package-with-python2 python-hiredis))
2499 (define-public python-fakeredis
2501 (name "python-fakeredis")
2506 (uri (pypi-uri "fakeredis" version))
2509 "0zncahj3byyasyfx9i7k991ph0n0lq8v3a21pqri5qxn9564bk9r"))))
2510 (build-system python-build-system)
2514 (home-page "https://github.com/jamesls/fakeredis")
2515 (synopsis "Fake implementation of redis API for testing purposes")
2516 (description "Fakeredis is a pure python implementation of the redis-py
2517 python client that simulates talking to a redis server. This was created for a
2518 single purpose: to write unittests. Setting up redis is not hard, but many time
2519 you want to write unittests that do not talk to an external server (such as
2520 redis). This module now allows tests to simply use this module as a reasonable
2521 substitute for redis.")
2522 (license license:bsd-3)))
2524 (define-public python2-fakeredis
2525 (package-with-python2 python-fakeredis))
2527 (define-public python-redis
2529 (name "python-redis")
2534 (uri (pypi-uri "redis" version))
2536 (base32 "03vcgklykny0g0wpvqmy8p6azi2s078317wgb2xjv5m2rs9sjb52"))))
2537 (build-system python-build-system)
2538 ;; Tests require a running Redis server
2539 (arguments '(#:tests? #f))
2540 ;; As long as we are not running test, we do not need this input :-)
2542 ;; `(("python-pytest" ,python-pytest)))
2543 (home-page "https://github.com/andymccurdy/redis-py")
2544 (synopsis "Redis Python client")
2546 "This package provides a Python interface to the Redis key-value store.")
2547 (license license:expat)))
2549 (define-public python2-redis
2550 (package-with-python2 python-redis))
2552 (define-public python-rq
2559 (uri (pypi-uri "rq" version))
2561 (base32 "0gaq5pnh0zy46r8jvygi0ifbvz3pq6i7xla78ijcgjw0x77qzsdh"))))
2562 (build-system python-build-system)
2564 `(("python-click" ,python-click)
2565 ("python-redis" ,python-redis)))
2566 (home-page "http://python-rq.org/")
2567 (synopsis "Simple job queues for Python")
2569 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2570 processing them in the background with workers. It is backed by Redis and it
2571 is designed to have a low barrier to entry.")
2572 (license license:bsd-2)))
2574 (define-public python2-rq
2575 (package-with-python2 python-rq))
2577 (define-public python-trollius-redis
2579 (name "python-trollius-redis")
2584 (uri (pypi-uri "trollius_redis" version))
2587 "0k3vypszmgmaipgw9xscvgm79h2zd6p6ci8gdp5sxl6g5kbqr9fy"))))
2588 (build-system python-build-system)
2589 ;; TODO: Tests require packaging 'hiredis'.
2590 (arguments '(#:tests? #f))
2591 (home-page "https://github.com/benjolitz/trollius-redis")
2592 (synopsis "Port of asyncio-redis to trollius")
2593 (description "@code{trollius-redis} is a Redis client for Python
2594 trollius. It is an asynchronious IO (PEP 3156) implementation of the
2596 (license license:bsd-2)))
2598 (define-public python2-trollius-redis
2599 (package-with-python2 python-trollius-redis))
2601 (define-public python-sqlparse
2603 (name "python-sqlparse")
2607 (uri (pypi-uri "sqlparse" version))
2610 "1v3xh0bkfhb262dbndgzhivpnhdwavdzz8jjhx9vx0xbrx2880nf"))))
2611 (build-system python-build-system)
2614 (modify-phases %standard-phases
2616 (lambda _ (zero? (system* "py.test")))))))
2618 `(("python-pytest" ,python-pytest)))
2619 (home-page "https://github.com/andialbrecht/sqlparse")
2620 (synopsis "Non-validating SQL parser")
2621 (description "Sqlparse is a non-validating SQL parser for Python. It
2622 provides support for parsing, splitting and formatting SQL statements.")
2623 (license license:bsd-3)))
2625 (define-public python2-sqlparse
2626 (package-with-python2 python-sqlparse))
2628 (define-public python-sql
2635 (uri (pypi-uri "python-sql" version))
2638 "0p6kaqj02vz0habmdx37zjk6hjxdfm8aw737zs059vvpr70ird87"))))
2639 (build-system python-build-system)
2640 (home-page "https://python-sql.tryton.org/")
2641 (synopsis "Library to write SQL queries in a pythonic way")
2642 (description "@code{python-sql} is a library to write SQL queries, that
2643 transforms idiomatic python function calls to well-formed SQL queries.")
2644 (license license:bsd-3)))
2646 (define-public python2-sql
2647 (package-with-python2 python-sql))
2649 (define-public mongo-tools
2651 (name "mongo-tools")
2654 (origin (method git-fetch)
2656 (url "https://github.com/mongodb/mongo-tools")
2657 (commit (string-append "r" version))))
2658 (file-name (git-file-name name version))
2661 "1bcsz5cvj39a7nsxsfqmz9igrw33j6yli9kffigqyscs52amw7x1"))))
2662 (build-system go-build-system)
2664 `(#:import-path "github.com/mongodb/mongo-tools"
2665 #:modules ((srfi srfi-1)
2666 (guix build go-build-system)
2670 '("bsondump" "mongodump" "mongoexport" "mongofiles"
2671 "mongoimport" "mongooplog" "mongorestore"
2672 "mongostat" "mongotop")))
2673 (modify-phases %standard-phases
2674 (add-after 'unpack 'delete-bundled-source-code
2676 (delete-file-recursively
2677 "src/github.com/mongodb/mongo-tools/vendor")
2679 ;; We don't need to install the source code for end-user applications
2680 (delete 'install-source)
2683 (every (lambda (tool)
2686 ;; This is where the tests expect to find the
2688 "-o" ,(string-append
2689 "src/github.com/mongodb/mongo-tools/bin/"
2692 "-tags=\"ssl sasl\""
2694 "-extldflags=-Wl,-z,now,-z,relro"
2696 "src/github.com/mongodb/mongo-tools/"
2697 tool "/main/" tool ".go"))))
2698 (simple-format #t "build: running ~A\n"
2699 (string-join command))
2700 (apply invoke command)))
2704 (with-directory-excursion "src"
2705 (every (lambda (tool)
2708 (string-append "github.com/mongodb/mongo-tools/" tool)))
2711 (lambda* (#:key outputs #:allow-other-keys)
2712 (for-each (lambda (tool)
2714 (string-append "src/github.com/mongodb/mongo-tools/bin/" tool)
2715 (string-append (assoc-ref outputs "out")
2719 `(("go-github.com-howeyc-gopass" ,go-github.com-howeyc-gopass)
2720 ("go-github.com-jessevdk-go-flags" ,go-github.com-jessevdk-go-flags)
2721 ("go-golang.org-x-crypto-ssh-terminal" ,go-golang.org-x-crypto-ssh-terminal)
2722 ("go-gopkg.in-mgo.v2" ,go-gopkg.in-mgo.v2)
2723 ("go-gopkg.in-tomb.v2" ,go-gopkg.in-tomb.v2)
2724 ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)
2725 ("go-github.com-smartystreets-goconvey" ,go-github.com-smartystreets-goconvey)))
2726 (home-page "https://github.com/mongodb/mongo-tools")
2727 (synopsis "Various tools for interacting with MongoDB and BSON")
2729 "This package includes a collection of tools related to MongoDB.
2732 Display BSON files in a human-readable format
2734 Convert data from JSON, TSV or CSV and insert them into a collection
2736 Write an existing collection to CSV or JSON format
2737 @item mongodump/mongorestore
2738 Dump MongoDB backups to disk in the BSON format
2740 Read MongoDB backups in the BSON format, and restore them to a live database
2742 Monitor live MongoDB servers, replica sets, or sharded clusters
2744 Read, write, delete, or update files in GridFS
2746 Replay oplog entries between MongoDB servers
2748 Monitor read/write activity on a mongo server
2750 (license license:asl2.0)))
2752 (define-public apache-arrow
2754 (name "apache-arrow")
2760 (url "https://github.com/apache/arrow")
2761 (commit (string-append "apache-arrow-" version))))
2762 (file-name (git-file-name name version))
2765 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2766 (build-system cmake-build-system)
2770 (modify-phases %standard-phases
2771 (add-before 'configure 'enter-source-directory
2772 (lambda _ (chdir "cpp") #t))
2773 (add-after 'unpack 'set-env
2775 (setenv "BOOST_ROOT" (assoc-ref %build-inputs "boost"))
2776 (setenv "BROTLI_HOME" (assoc-ref %build-inputs "brotli"))
2777 (setenv "FLATBUFFERS_HOME" (assoc-ref %build-inputs "flatbuffers"))
2778 (setenv "JEMALLOC_HOME" (assoc-ref %build-inputs "jemalloc"))
2779 (setenv "RAPIDJSON_HOME" (assoc-ref %build-inputs "rapidjson"))
2781 #:build-type "Release"
2783 (list "-DARROW_PYTHON=ON"
2785 ;; Install to PREFIX/lib (the default is
2787 (string-append "-DCMAKE_INSTALL_LIBDIR="
2788 (assoc-ref %outputs "out")
2791 ;; XXX These Guix package offer static
2792 ;; libraries that are not position independent,
2793 ;; and ld fails to link them into the arrow .so
2794 "-DARROW_WITH_SNAPPY=OFF"
2795 "-DARROW_WITH_ZLIB=OFF"
2796 "-DARROW_WITH_ZSTD=OFF"
2797 "-DARROW_WITH_LZ4=OFF"
2799 ;; Building the tests forces on all the
2800 ;; optional features and the use of static
2802 "-DARROW_BUILD_TESTS=OFF"
2803 "-DARROW_BUILD_STATIC=OFF")))
2806 ("rapidjson" ,rapidjson)
2807 ("brotli" ,google-brotli)
2808 ("flatbuffers" ,flatbuffers)
2809 ;; Arrow is not yet compatible with jemalloc >= 5:
2810 ;; https://issues.apache.org/jira/browse/ARROW-1141
2811 ("jemalloc" ,jemalloc-4.5.0)
2812 ("python-3" ,python)
2813 ("python-numpy" ,python-numpy)))
2814 (home-page "https://arrow.apache.org/")
2815 (synopsis "Columnar in-memory analytics")
2816 (description "Apache Arrow is a columnar in-memory analytics layer
2817 designed to accelerate big data. It houses a set of canonical in-memory
2818 representations of flat and hierarchical data along with multiple
2819 language-bindings for structure manipulation. It also provides IPC and common
2820 algorithm implementations.")
2821 (license license:asl2.0)))
2823 (define-public python-pyarrow
2825 (name "python-pyarrow")
2831 (url "https://github.com/apache/arrow")
2832 (commit (string-append "apache-arrow-" version))))
2833 (file-name (git-file-name name version))
2836 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2837 (build-system python-build-system)
2839 '(#:tests? #f ; XXX Test failures related to missing libhdfs, libhdfs3,
2840 ; and "Unsupported numpy type 22".
2842 (modify-phases %standard-phases
2843 (add-after 'unpack 'enter-source-directory
2844 (lambda _ (chdir "python") #t))
2845 (add-after 'unpack 'set-env
2847 (setenv "ARROW_HOME" (assoc-ref %build-inputs "apache-arrow"))
2850 `(("apache-arrow" ,apache-arrow)
2851 ("python-numpy" ,python-numpy)
2852 ("python-pandas" ,python-pandas)
2853 ("python-six" ,python-six)))
2856 ("python-cython" ,python-cython)
2857 ("python-pytest" ,python-pytest)
2858 ("python-setuptools-scm" ,python-setuptools-scm)))
2859 (home-page "https://arrow.apache.org/docs/python/")
2860 (synopsis "Python bindings for Apache Arrow")
2861 (description "This library provides a Pythonic API wrapper for the reference
2862 Arrow C++ implementation, along with tools for interoperability with pandas,
2863 NumPy, and other traditional Python scientific computing packages.")
2864 (license license:asl2.0)))
2866 (define-public python2-pyarrow
2867 (package-with-python2 python-pyarrow))