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 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 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 "0pxwz3jlwvglq2mrbxvrjgr8pa0aj73p3v9sxmdlj570zw0gzknd"))))
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")))
257 (invoke "./dist/configure"
258 (string-append "--prefix=" out)
259 (string-append "CONFIG_SHELL=" (which "bash"))
260 (string-append "SHELL=" (which "bash"))
262 ;; Remove 7 MiB of .a files.
265 ;; The compatibility mode is needed by some packages,
269 ;; The following flag is needed so that the inclusion
270 ;; of db_cxx.h into C++ files works; it leads to
271 ;; HAVE_CXX_STDHEADERS being defined in db_cxx.h.
272 "--enable-cxx")))))))
273 (synopsis "Berkeley database")
275 "Berkeley DB is an embeddable database allowing developers the choice of
276 SQL, Key/Value, XML/XQuery or Java Object storage for their data model.")
277 ;; Starting with version 6, BDB is distributed under AGPL3. Many individual
278 ;; files are covered by the 3-clause BSD license.
279 (license (list license:agpl3+ license:bsd-3))
281 "http://www.oracle.com/us/products/database/berkeley-db/overview/index.html")))
283 (define-public bdb-5.3
284 (package (inherit bdb)
287 (license (license:non-copyleft "file://LICENSE"
288 "See LICENSE in the distribution."))
291 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
295 "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0"))))
297 `(#:tests? #f ; no check target available
298 #:disallowed-references ("doc")
300 (modify-phases %standard-phases
302 (lambda* (#:key outputs #:allow-other-keys)
303 (let ((out (assoc-ref outputs "out"))
304 (doc (assoc-ref outputs "doc")))
305 ;; '--docdir' is not honored, so we need to patch.
306 (substitute* "dist/Makefile.in"
307 (("docdir[[:blank:]]*=.*")
308 (string-append "docdir = " doc "/share/doc/bdb")))
310 (invoke "./dist/configure"
311 (string-append "--prefix=" out)
312 (string-append "CONFIG_SHELL=" (which "bash"))
313 (string-append "SHELL=" (which "bash"))
315 ;; Bdb doesn't recognize aarch64 as an architecture.
316 ,@(if (string=? "aarch64-linux" (%current-system))
317 '("--build=aarch64-unknown-linux-gnu")
320 ;; Remove 7 MiB of .a files.
323 ;; The compatibility mode is needed by some packages,
327 ;; The following flag is needed so that the inclusion
328 ;; of db_cxx.h into C++ files works; it leads to
329 ;; HAVE_CXX_STDHEADERS being defined in db_cxx.h.
330 "--enable-cxx")))))))))
332 (define-public es-dump-restore
334 (name "es-dump-restore")
339 (uri (rubygems-uri "es_dump_restore" version))
342 "020yk7f1hw48clmf5501z3xv9shsdchyymcv0y2cci2c1xvr1mim"))))
343 (build-system ruby-build-system)
345 '(#:tests? #f)) ;; No testsuite.
347 `(("ruby-httpclient" ,ruby-httpclient)
348 ("ruby-multi-json" ,ruby-multi-json)
349 ("ruby-progress_bar" ,ruby-progress_bar)
350 ("ruby-rubyzip" ,ruby-rubyzip)
351 ("ruby-thor" ,ruby-thor)))
352 (synopsis "Utility for dumping and restoring ElasticSearch indexes")
354 "This package provides a utility for dumping the contents of an
355 ElasticSearch index to a compressed file and restoring the dumpfile back to an
356 ElasticSearch server")
357 (home-page "https://github.com/patientslikeme/es_dump_restore")
358 (license license:expat)))
360 (define-public leveldb
366 (uri (string-append "https://github.com/google/leveldb"
367 "/archive/v" version ".tar.gz"))
368 (file-name (string-append name "-" version ".tar.gz"))
371 "0r36bcrj6b2afsp4aw1gjai3jbs1c7734pxpc1jz7hh9nasyiazm"))))
372 (build-system gnu-build-system)
374 '(#:make-flags (list "CC=gcc")
376 (modify-phases %standard-phases
379 ;; There is no install target, so we do it here.
380 (lambda* (#:key outputs #:allow-other-keys)
381 (let* ((out (assoc-ref outputs "out"))
382 (lib (string-append out "/lib"))
383 (include (string-append out "/include")))
384 (for-each (lambda (file)
385 (install-file file lib))
386 (find-files "out-shared" "^libleveldb\\.so.*$"))
387 (copy-recursively "include" include)
390 `(("snappy" ,snappy)))
391 (home-page "http://leveldb.org/")
392 (synopsis "Fast key-value storage library")
394 "LevelDB is a fast key-value storage library that provides an ordered
395 mapping from string keys to string values.")
396 (license license:bsd-3)))
398 (define-public memcached
406 "https://memcached.org/files/memcached-" version ".tar.gz"))
409 "00szy9d4szaixi260dcd4846zci04y0sd47ia2lzg0bxkn2ywxcn"))))
410 (build-system gnu-build-system)
412 `(("libevent" ,libevent)
413 ("cyrus-sasl" ,cyrus-sasl)))
414 (home-page "https://memcached.org/")
415 (synopsis "In memory caching service")
416 (description "Memcached is a in memory key value store. It has a small
417 and generic API, and was originally intended for use with dynamic web
419 (license license:bsd-3)))
421 (define-public mongodb
427 (uri (string-append "https://github.com/mongodb/mongo/archive/r"
429 (file-name (string-append name "-" version ".tar.gz"))
431 (base32 "0676lvkljj7a5hdhv78dbykqnqrj9lbn9799mi84b8vbnzsq961r"))
432 (modules '((guix build utils)))
435 (for-each (lambda (dir)
436 (delete-file-recursively
437 (string-append "src/third_party/" dir)))
438 '("pcre-8.41" "scons-2.5.0" "snappy-1.1.3"
439 "valgrind-3.11.0" "wiredtiger"
440 "yaml-cpp-0.5.3" "zlib-1.2.8"))
444 (search-patch "mongodb-support-unknown-linux-distributions.patch")))))
445 (build-system scons-build-system)
447 `(("openssl" ,openssl)
449 ,@(match (%current-system)
450 ((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
451 `(("wiredtiger" ,wiredtiger)))
453 ("yaml-cpp" ,yaml-cpp)
457 `(("valgrind" ,valgrind)
459 ("python" ,python2-minimal)
460 ("python2-pymongo" ,python2-pymongo)
461 ("python2-pyyaml" ,python2-pyyaml)
464 `(#:scons ,scons-python2
466 (let ((common-options
467 `(;; "--use-system-tcmalloc" TODO: Missing gperftools
469 ;; wiredtiger is 64-bit only
470 ,,(if (any (cute string-prefix? <> (or (%current-target-system)
472 '("i686-linux" "armhf-linux"))
474 ``"--use-system-wiredtiger")
476 ;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1
477 ;; --use-system-boost
478 "--use-system-snappy"
480 "--use-system-valgrind"
481 ;; "--use-system-stemmer" TODO: Missing relevant package
483 "--disable-warnings-as-errors"
484 ,(format #f "--jobs=~a" (parallel-job-count))
486 (modify-phases %standard-phases
487 (add-after 'unpack 'scons-propagate-environment
489 ;; Modify the SConstruct file to arrange for
490 ;; environment variables to be propagated.
491 (substitute* "SConstruct"
492 (("^env = Environment\\(")
493 "env = Environment(ENV=os.environ, "))
495 (add-after 'unpack 'create-version-file
497 (call-with-output-file "version.json"
499 (display ,(simple-format #f "{
505 (zero? (apply system*
508 "mongod" "mongo" "mongos")))))
510 (lambda* (#:key tests? inputs #:allow-other-keys)
512 (string-append (assoc-ref inputs "tzdata")
515 ;; Note that with the tests, especially the unittests, the
516 ;; build can take up to ~45GB of space, as many tests are
517 ;; individual executable files, with some being hundreds of
518 ;; megabytes in size.
521 invoke `("scons" ,@common-options "dbtest" "unittests"))
522 (substitute* "build/unittests.txt"
523 ;; TODO: Don't run the async_stream_test, as it hangs
524 (("^build\\/opt\\/mongo\\/executor\\/async\\_stream\\_test\n$")
526 ;; TODO: This test fails
527 ;; Expected 0UL != disks.size() (0 != 0) @src/mongo/util/procparser_test.cpp:476
528 (("^build\\/opt\\/mongo\\/util\\/procparser\\_test\n$")
530 (invoke "python" "buildscripts/resmoke.py"
531 "--suites=dbtest,unittests"
532 (format #f "--jobs=~a" (parallel-job-count)))))))
535 (let ((bin (string-append (assoc-ref %outputs "out") "/bin")))
536 (install-file "mongod" bin)
537 (install-file "mongos" bin)
538 (install-file "mongo" bin))
540 (home-page "https://www.mongodb.org/")
541 (synopsis "High performance and high availability document database")
543 "Mongo is a high-performance, high availability, schema-free
544 document-oriented database. A key goal of MongoDB is to bridge the gap
545 between key/value stores (which are fast and highly scalable) and traditional
546 RDBMS systems (which are deep in functionality).")
547 (license (list license:agpl3
548 ;; Some parts are licensed under the Apache License
557 (uri (list (string-append
558 "http://dev.mysql.com/get/Downloads/MySQL-"
559 (version-major+minor version) "/"
560 name "-" version ".tar.gz")
562 "http://downloads.mysql.com/archives/get/file/"
563 name "-" version ".tar.gz")))
566 "1dq9bgnajf7cq3mrjkwv6w5nwslhs26lkrw56i7w4fbsq9wm087s"))))
567 (build-system cmake-build-system)
570 '("-DBUILD_CONFIG=mysql_release"
573 "-DDEFAULT_CHARSET=utf8"
574 "-DDEFAULT_COLLATION=utf8_general_ci"
575 "-DMYSQL_DATADIR=/var/lib/mysql"
576 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
577 "-DINSTALL_INFODIR=share/mysql/docs"
578 "-DINSTALL_MANDIR=share/man"
579 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
580 "-DINSTALL_SCRIPTDIR=bin"
581 "-DINSTALL_INCLUDEDIR=include/mysql"
582 "-DINSTALL_DOCREADMEDIR=share/mysql/docs"
583 "-DINSTALL_SUPPORTFILESDIR=share/mysql"
584 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
585 "-DINSTALL_DOCDIR=share/mysql/docs"
586 "-DINSTALL_SHAREDIR=share/mysql"
587 ;; Get rid of test data.
588 "-DINSTALL_MYSQLTESTDIR="
589 "-DINSTALL_SQLBENCHDIR=")
590 #:phases (modify-phases %standard-phases
592 'unpack 'patch-boost-version
594 ;; Mysql wants boost-1.59.0 specifically
595 (substitute* "cmake/boost.cmake"
597 ,(match (string-split (package-version boost) #\.)
598 ((_ 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 "1m3ya6c3snnsyscd0waklayqfv0vhws52iizv2j5masj5xhdbfvk"))))
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")))
691 `(("jemalloc" ,jemalloc)
698 (home-page "https://mariadb.org/")
699 (synopsis "SQL database server")
701 "MariaDB is a multi-user and multi-threaded SQL database server, designed
702 as a drop-in replacement of MySQL.")
703 (license license:gpl2)))
705 (define-public postgresql
711 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
712 version "/postgresql-" version ".tar.bz2"))
715 "06lkcwsf851z49zqcws5yc77s2yrbaazf2nvbk38hpp31rw6i8kf"))))
716 (build-system gnu-build-system)
718 `(#:configure-flags '("--with-uuid=e2fs")
720 (modify-phases %standard-phases
721 (add-before 'configure 'patch-/bin/sh
723 ;; Refer to the actual shell.
724 (substitute* '("src/bin/pg_ctl/pg_ctl.c"
725 "src/bin/psql/command.c")
726 (("/bin/sh") (which "sh")))
728 (add-after 'build 'build-contrib
730 (invoke "make" "-C" "contrib")))
731 (add-after 'install 'install-contrib
733 (invoke "make" "-C" "contrib" "install"))))))
735 `(("readline" ,readline)
736 ("libuuid" ,util-linux)
738 (home-page "https://www.postgresql.org/")
739 (synopsis "Powerful object-relational database system")
741 "PostgreSQL is a powerful object-relational database system. It is fully
742 ACID compliant, has full support for foreign keys, joins, views, triggers, and
743 stored procedures (in multiple languages). It includes most SQL:2008 data
744 types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and
745 TIMESTAMP. It also supports storage of binary large objects, including
746 pictures, sounds, or video.")
747 (license (license:x11-style "file://COPYRIGHT"))))
749 (define-public postgresql-9.6
756 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
757 version "/postgresql-" version ".tar.bz2"))
760 "0w7bwf19wbdd3jjbjv03cnx56qka4801srcbsayk9v792awv7zga"))))))
769 (uri (string-append "http://fallabs.com/" name "/"
770 name "-" version ".tar.gz"))
773 "0gmpvhn02pkq280ffmn4da1g4mdr1xxz7l80b7y4n7km1mrzwrml"))))
774 (build-system gnu-build-system)
776 `( #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
777 (assoc-ref %outputs "out")
779 (home-page "http://fallabs.com/qdbm")
780 (synopsis "Key-value database")
781 (description "QDBM is a library of routines for managing a
782 database. The database is a simple data file containing key-value
783 pairs. Every key and value is serial bytes with variable length.
784 Binary data as well as character strings can be used as a key or a
785 value. There is no concept of data tables or data types. Records are
786 organized in a hash table or B+ tree.")
787 (license license:lgpl2.1+)))
789 (define-public recutils
795 (uri (string-append "mirror://gnu/recutils/recutils-"
799 "0cdwa4094x3yx7vn98xykvnlp9rngvd58d19vs3vh5hrvggccg93"))))
800 (build-system gnu-build-system)
802 ;; Running tests in parallel leads to test failures and crashes in
804 (arguments '(#:parallel-tests? #f
806 (list (string-append "--with-bash-headers="
807 (assoc-ref %build-inputs "bash:include")
810 #:phases (modify-phases %standard-phases
811 (add-before 'build 'set-bash4.4-header-location
813 (substitute* "bash/Makefile.in"
814 ;; Adjust the header search path for Bash
815 ;; 4.4 in accordance with 'bash.pc'.
816 (("AM_CPPFLAGS = (.*)$" _ rest)
817 (string-append "AM_CPPFLAGS = "
818 "-I$(BASH_HEADERS)/include "
821 ;; Install to PREFIX/lib/bash to match Bash
822 ;; 4.4's search path.
824 "libdir = @libdir@/bash\n"))
827 (native-inputs `(("emacs" ,emacs-minimal)
829 ("bash:include" ,bash "include")
830 ("libuuid" ,util-linux)))
832 ;; TODO: Add more optional inputs.
833 (inputs `(("curl" ,curl)
834 ("libgcrypt" ,libgcrypt)
836 (synopsis "Manipulate plain text files as databases")
838 "GNU Recutils is a set of tools and libraries for creating and
839 manipulating text-based, human-editable databases. Despite being text-based,
840 databases created with Recutils carry all of the expected features such as
841 unique fields, primary keys, time stamps and more. Many different field
842 types are supported, as is encryption.")
843 (license license:gpl3+)
844 (home-page "https://www.gnu.org/software/recutils/")))
846 (define-public rocksdb
852 (uri (string-append "https://github.com/facebook/rocksdb"
853 "/archive/v" version ".tar.gz"))
854 (file-name (string-append name "-" version ".tar.gz"))
857 "1jcwgsjhk4hdfr2wf549blkgb89vwcdb5i2ahhqs6zf3mm20i3bf"))
858 (modules '((guix build utils)))
861 ;; TODO: unbundle gtest.
862 (delete-file "build_tools/gnu_parallel")
863 (substitute* "Makefile"
864 (("build_tools/gnu_parallel") "parallel"))
866 (build-system gnu-build-system)
868 `(#:make-flags (list "CC=gcc" "V=1"
869 ;; Ceph requires that RTTI is enabled.
871 (string-append "INSTALL_PATH="
872 (assoc-ref %outputs "out"))
874 ;; Running the full test suite takes hours and require
875 ;; a lot of disk space. Instead we only run a subset
876 ;; (see .travis.yml and Makefile).
877 "ROCKSDBTESTS_END=db_tailing_iter_test")
878 #:test-target "check_some"
879 ;; Many tests fail on 32-bit platforms. There are multiple reports about
880 ;; this upstream, but it's not going to be supported any time soon.
881 #:tests? (let ((system ,(or (%current-target-system)
883 (or (string-prefix? "x86_64-linux" system)
884 (string-prefix? "aarch64-linux" system)))
886 (modify-phases %standard-phases
887 (add-after 'unpack 'patch-Makefile
889 (substitute* "Makefile"
890 ;; Don't depend on the static library when installing.
891 (("install: install-static")
892 "install: install-shared")
893 (("#!/bin/sh") (string-append "#!" (which "sh"))))
896 ;; The default target is only needed for tests and built on demand.
898 (add-before 'check 'disable-optimizations
900 ;; Prevent the build from passing '-march=native' to the compiler.
901 (setenv "PORTABLE" "1")
903 (add-before 'check 'disable-failing-tests
905 (substitute* "Makefile"
906 ;; These tests reliably fail due to "Too many open files".
907 (("^[[:blank:]]+env_test[[:blank:]]+\\\\") "\\")
908 (("^[[:blank:]]+persistent_cache_test[[:blank:]]+\\\\") "\\"))
910 (add-after 'check 'build
911 ;; The default build target is a debug build for tests. The
912 ;; install target depends on the "shared_lib" release target
913 ;; so we build it here for clarity.
914 (lambda* (#:key (make-flags '()) parallel-build? #:allow-other-keys)
915 (apply invoke "make" "shared_lib"
916 `(,@(if parallel-build?
917 `("-j" ,(number->string (parallel-job-count)))
921 `(("parallel" ,parallel)
929 ("jemalloc" ,jemalloc)
933 (home-page "http://rocksdb.org/")
934 (synopsis "Persistent key-value store for fast storage")
936 "RocksDB is a library that forms the core building block for a fast
937 key-value server, especially suited for storing data on flash drives. It
938 has a @dfn{Log-Structured-Merge-Database} (LSM) design with flexible tradeoffs
939 between @dfn{Write-Amplification-Factor} (WAF), @dfn{Read-Amplification-Factor}
940 (RAF) and @dfn{Space-Amplification-Factor} (SAF). It has multi-threaded
941 compactions, making it specially suitable for storing multiple terabytes of
942 data in a single database. RocksDB is partially based on @code{LevelDB}.")
943 ;; RocksDB is dual licensed under GPL2 and ASL 2.0. Some header
944 ;; files carry the 3-clause BSD license.
945 (license (list license:gpl2 license:asl2.0 license:bsd-3))))
947 (define-public sparql-query
949 (name "sparql-query")
953 (uri (string-append "https://github.com/tialaramex/"
954 name "/archive/" version ".tar.gz"))
956 (base32 "0yq3k20472rv8npcc420q9ab6idy584g5y0q501d360k5q0ggr8w"))
957 (file-name (string-append name "-" version ".tar.gz"))))
958 (build-system gnu-build-system)
960 `(("readline" ,readline)
966 `(("pkg-config" ,pkg-config)))
968 `(#:make-flags '("CC=gcc")
970 (modify-phases %standard-phases
972 ;; The Makefile uses git to obtain versioning information. This phase
973 ;; substitutes the git invocation with the package version.
974 (add-after 'unpack 'remove-git-dependency
976 (substitute* "Makefile"
978 (string-append "gitrev = \"v" ,version "\"")))))
979 ;; The install phase of the Makefile assumes $PREFIX/usr/local/bin.
980 ;; This replacement does the same thing, except for using $PREFIX/bin
983 (lambda* (#:key outputs #:allow-other-keys)
984 (let* ((out (assoc-ref outputs "out"))
985 (bin (string-append out "/bin")))
986 (install-file "sparql-query" bin)
987 (system* "ln" "--symbolic"
988 (string-append bin "/sparql-query")
989 (string-append bin "/sparql-update")))))
991 (lambda* (#:key make-flags #:allow-other-keys)
993 (zero? (apply system* "make" `(,@make-flags "scan-test")))
994 (zero? (system "./scan-test"))))))))
995 (home-page "https://github.com/tialaramex/sparql-query/")
996 (synopsis "Command-line tool for accessing SPARQL endpoints over HTTP")
997 (description "Sparql-query is a command-line tool for accessing SPARQL
998 endpoints over HTTP. It has been intentionally designed to 'feel' similar to
999 tools for interrogating SQL databases. For example, you can enter a query over
1000 several lines, using a semi-colon at the end of a line to indicate the end of
1001 your query. It also supports readline so that you can more easily recall and
1002 edit previous queries, even across sessions. It can be used non-interactively,
1003 for example from a shell script.")
1004 ;; Some files (like scan-sparql.c) contain a GPLv3+ license header, while
1005 ;; others (like sparql-query.c) contain a GPLv2+ license header.
1006 (license (list license:gpl3+))))
1008 (define-public sqlite
1014 (uri (let ((numeric-version
1015 (match (string-split version #\.)
1016 ((first-digit other-digits ...)
1017 (string-append first-digit
1020 (map (cut string-pad <> 2 #\0)
1023 (string-append "https://sqlite.org/2018/sqlite-autoconf-"
1024 numeric-version ".tar.gz")))
1027 "0jbf78g3cm5wq77k7sfg8fb6rz44hnp9hs7p5d66fwd000c1lwdp"))))
1028 (build-system gnu-build-system)
1029 (inputs `(("readline" ,readline)))
1032 ;; Add -DSQLITE_SECURE_DELETE, -DSQLITE_ENABLE_UNLOCK_NOTIFY and
1033 ;; -DSQLITE_ENABLE_DBSTAT_VTAB to CFLAGS. GNU Icecat will refuse
1034 ;; to use the system SQLite unless these options are enabled.
1035 (list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
1036 "-DSQLITE_ENABLE_UNLOCK_NOTIFY "
1037 "-DSQLITE_ENABLE_DBSTAT_VTAB"))))
1038 (home-page "https://www.sqlite.org/")
1039 (synopsis "The SQLite database management system")
1041 "SQLite is a software library that implements a self-contained, serverless,
1042 zero-configuration, transactional SQL database engine. SQLite is the most
1043 widely deployed SQL database engine in the world. The source code for SQLite
1044 is in the public domain.")
1045 (license license:public-domain)))
1047 ;; This is used by Tracker.
1048 (define-public sqlite-with-fts5
1049 (package (inherit sqlite)
1050 (name "sqlite-with-fts5")
1052 (substitute-keyword-arguments (package-arguments sqlite)
1053 ((#:configure-flags flags)
1054 `(cons "--enable-fts5" ,flags))))))
1056 ;; This is used by Clementine.
1057 (define-public sqlite-with-fts3
1058 (package (inherit sqlite)
1059 (name "sqlite-with-fts3")
1061 (substitute-keyword-arguments (package-arguments sqlite)
1062 ((#:configure-flags flags)
1063 `(list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
1064 "-DSQLITE_ENABLE_UNLOCK_NOTIFY "
1065 "-DSQLITE_ENABLE_DBSTAT_VTAB "
1066 "-DSQLITE_ENABLE_FTS3 "
1067 "-DSQLITE_ENABLE_FTS3_PARENTHESIS "
1068 "-DSQLITE_ENABLE_FTS3_TOKENIZER")))))))
1076 (uri (string-append "https://www.samba.org/ftp/tdb/tdb-"
1080 "0a37jhpij8wr4f4pjqdlwnffy2l6a2vkqdpz1bqxj6v06cwbz8dl"))))
1081 (build-system gnu-build-system)
1084 (modify-phases %standard-phases
1086 (lambda* (#:key outputs #:allow-other-keys)
1087 (let ((out (assoc-ref outputs "out")))
1088 ;; The 'configure' script is a wrapper for Waf and
1089 ;; doesn't recognize things like '--enable-fast-install'.
1090 (zero? (system* "./configure"
1091 (string-append "--prefix=" out)))))))))
1093 `(;; TODO: Build the documentation.
1094 ;; ("docbook-xsl" ,docbook-xsl)
1095 ;; ("libxml2" ,libxml2)
1096 ;; ("libxslt" ,libxslt)
1097 ("python" ,python-2))) ;for the Waf build system
1098 (home-page "https://tdb.samba.org/")
1099 (synopsis "Trivial database")
1101 "TDB is a Trivial Database. In concept, it is very much like GDBM,
1102 and BSD's DB except that it allows multiple simultaneous writers and uses
1103 locking internally to keep writers from trampling on each other. TDB is also
1105 (license license:lgpl3+)))
1107 (define-public perl-dbi
1114 "mirror://cpan/authors/id/T/TI/TIMB/DBI-"
1118 "1ikbsb6sb0bd2m1dqknl4vx7ikmnd41y0xq8np1l40g8jcjp2mr5"))))
1119 (build-system perl-build-system)
1120 (synopsis "Database independent interface for Perl")
1121 (description "This package provides an database interface for Perl.")
1122 (home-page "http://search.cpan.org/dist/DBI")
1123 (license license:perl-license)))
1125 (define-public perl-dbix-class
1127 (name "perl-dbix-class")
1128 (version "0.082841")
1132 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
1133 "DBIx-Class-" version ".tar.gz"))
1136 "1gf3hgv8f9rnr8bl4ljgsqk4aliphmvljhsk4282kvdc4mcgh1fp"))))
1137 (build-system perl-build-system)
1139 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
1140 ("perl-file-temp" ,perl-file-temp)
1141 ("perl-module-install" ,perl-module-install)
1142 ("perl-package-stash" ,perl-package-stash)
1143 ("perl-test-deep" ,perl-test-deep)
1144 ("perl-test-exception" ,perl-test-exception)
1145 ("perl-test-warn" ,perl-test-warn)))
1147 `(("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1148 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1149 ("perl-class-inspector" ,perl-class-inspector)
1150 ("perl-config-any" ,perl-config-any)
1151 ("perl-context-preserve" ,perl-context-preserve)
1152 ("perl-data-dumper-concise" ,perl-data-dumper-concise)
1153 ("perl-data-page" ,perl-data-page)
1154 ("perl-dbi" ,perl-dbi)
1155 ("perl-devel-globaldestruction" ,perl-devel-globaldestruction)
1156 ("perl-hash-merge" ,perl-hash-merge)
1157 ("perl-module-find" ,perl-module-find)
1158 ("perl-moo" ,perl-moo)
1159 ("perl-mro-compat" ,perl-mro-compat)
1160 ("perl-namespace-clean" ,perl-namespace-clean)
1161 ("perl-path-class" ,perl-path-class)
1162 ("perl-scalar-list-utils" ,perl-scalar-list-utils)
1163 ("perl-scope-guard" ,perl-scope-guard)
1164 ("perl-sql-abstract" ,perl-sql-abstract)
1165 ("perl-sub-name" ,perl-sub-name)
1166 ("perl-text-balanced" ,perl-text-balanced)
1167 ("perl-try-tiny" ,perl-try-tiny)))
1168 (home-page "http://search.cpan.org/dist/DBIx-Class")
1169 (synopsis "Extensible and flexible object <-> relational mapper")
1170 (description "An SQL to OO mapper with an object API inspired by
1171 Class::DBI (with a compatibility layer as a springboard for porting) and a
1172 resultset API that allows abstract encapsulation of database operations. It
1173 aims to make representing queries in your code as perl-ish as possible while
1174 still providing access to as many of the capabilities of the database as
1175 possible, including retrieving related records from multiple tables in a
1176 single query, \"JOIN\", \"LEFT JOIN\", \"COUNT\", \"DISTINCT\", \"GROUP BY\",
1177 \"ORDER BY\" and \"HAVING\" support.")
1178 (license license:perl-license)))
1180 (define-public perl-dbix-class-cursor-cached
1182 (name "perl-dbix-class-cursor-cached")
1183 (version "1.001004")
1187 (uri (string-append "mirror://cpan/authors/id/A/AR/ARCANEZ/"
1188 "DBIx-Class-Cursor-Cached-" version ".tar.gz"))
1191 "09b2jahn2x12qm4f7qm1jzsxbz7qn1czp6a3fnl5l2i3l4r5421p"))))
1192 (build-system perl-build-system)
1194 `(("perl-cache-cache" ,perl-cache-cache)
1195 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1196 ("perl-module-install" ,perl-module-install)))
1198 `(("perl-carp-clan" ,perl-carp-clan)
1199 ("perl-dbix-class" ,perl-dbix-class)))
1200 (home-page "http://search.cpan.org/dist/DBIx-Class-Cursor-Cached")
1201 (synopsis "Cursor with built-in caching support")
1202 (description "DBIx::Class::Cursor::Cached provides a cursor class with
1203 built-in caching support.")
1204 (license license:perl-license)))
1206 (define-public perl-dbix-class-introspectablem2m
1208 (name "perl-dbix-class-introspectablem2m")
1209 (version "0.001002")
1213 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1214 "DBIx-Class-IntrospectableM2M-" version ".tar.gz"))
1217 "1w47rh2241iy5x3a9bqsyd5kdp9sk43dksr99frzv4qn4jsazfn6"))))
1218 (build-system perl-build-system)
1220 `(("perl-module-install" ,perl-module-install)))
1222 `(("perl-dbix-class" ,perl-dbix-class)))
1223 (home-page "http://search.cpan.org/dist/DBIx-Class-IntrospectableM2M")
1224 (synopsis "Introspect many-to-many relationships")
1225 (description "Because the many-to-many relationships are not real
1226 relationships, they can not be introspected with DBIx::Class. Many-to-many
1227 relationships are actually just a collection of convenience methods installed
1228 to bridge two relationships. This DBIx::Class component can be used to store
1229 all relevant information about these non-relationships so they can later be
1230 introspected and examined.")
1231 (license license:perl-license)))
1233 (define-public perl-dbix-class-schema-loader
1235 (name "perl-dbix-class-schema-loader")
1240 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1241 "DBIx-Class-Schema-Loader-" version ".tar.gz"))
1244 "0r57fv71ypxafb85cpxph1hdqii7ipjwvc19yb6fpkvq2ggcssg8"))))
1245 (build-system perl-build-system)
1247 `(("perl-config-any" ,perl-config-any)
1248 ("perl-config-general" ,perl-config-general)
1249 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1250 ("perl-dbix-class-introspectablem2m" ,perl-dbix-class-introspectablem2m)
1251 ("perl-module-install" ,perl-module-install)
1252 ("perl-moose" ,perl-moose)
1253 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
1254 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
1255 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1256 ("perl-test-deep" ,perl-test-deep)
1257 ("perl-test-differences" ,perl-test-differences)
1258 ("perl-test-exception" ,perl-test-exception)
1259 ("perl-test-pod" ,perl-test-pod)
1260 ("perl-test-warn" ,perl-test-warn)))
1262 `(("perl-class-unload" ,perl-class-unload)
1263 ("perl-class-inspector" ,perl-class-inspector)
1264 ("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1265 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1266 ("perl-carp-clan" ,perl-carp-clan)
1267 ("perl-data-dump" ,perl-data-dump)
1268 ("perl-dbix-class" ,perl-dbix-class)
1269 ("perl-hash-merge" ,perl-hash-merge)
1270 ("perl-list-moreutils" ,perl-list-moreutils)
1271 ("perl-lingua-en-inflect-phrase" ,perl-lingua-en-inflect-phrase)
1272 ("perl-lingua-en-inflect-number" ,perl-lingua-en-inflect-number)
1273 ("perl-lingua-en-tagger" ,perl-lingua-en-tagger)
1274 ("perl-namespace-clean" ,perl-namespace-clean)
1275 ("perl-mro-compat" ,perl-mro-compat)
1276 ("perl-scope-guard" ,perl-scope-guard)
1277 ("perl-string-camelcase" ,perl-string-camelcase)
1278 ("perl-string-toidentifier-en" ,perl-string-toidentifier-en)
1279 ("perl-sub-name" ,perl-sub-name)
1280 ("perl-try-tiny" ,perl-try-tiny)))
1281 (arguments `(#:tests? #f)) ;TODO: t/20invocations.t fails
1282 (home-page "http://search.cpan.org/dist/DBIx-Class-Schema-Loader")
1283 (synopsis "Create a DBIx::Class::Schema based on a database")
1284 (description "DBIx::Class::Schema::Loader automates the definition of a
1285 DBIx::Class::Schema by scanning database table definitions and setting up the
1286 columns, primary keys, unique constraints and relationships.")
1287 (license license:perl-license)))
1289 (define-public perl-dbd-pg
1291 (name "perl-dbd-pg")
1296 (uri (string-append "mirror://cpan/authors/id/T/TU/TURNSTEP/"
1297 "DBD-Pg-" version ".tar.gz"))
1300 "0gkqlvbmzbdm0g4k328nlkjdg3wrjm5i2n9jxj1i8sqxkm79rylz"))))
1301 (build-system perl-build-system)
1303 `(("perl-dbi" ,perl-dbi)))
1305 `(("perl-dbi" ,perl-dbi)
1306 ("postgresql" ,postgresql)))
1307 (home-page "http://search.cpan.org/dist/DBD-Pg")
1308 (synopsis "DBI PostgreSQL interface")
1309 (description "This package provides a PostgreSQL driver for the Perl5
1310 @dfn{Database Interface} (DBI).")
1311 (license license:perl-license)))
1313 (define-public perl-dbd-mysql
1315 (name "perl-dbd-mysql")
1320 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1321 "DBD-mysql-" version ".tar.gz"))
1324 "16bg7l28n65ngi1abjxvwk906a80i2vd5vzjn812dx8phdg8d7v2"))
1325 (patches (search-patches "perl-dbd-mysql-CVE-2017-10788.patch"))))
1326 (build-system perl-build-system)
1327 ;; Tests require running MySQL server
1328 (arguments `(#:tests? #f))
1330 `(("perl-dbi" ,perl-dbi)
1332 (home-page "http://search.cpan.org/dist/DBD-mysql")
1333 (synopsis "DBI MySQL interface")
1334 (description "This package provides a MySQL driver for the Perl5
1335 @dfn{Database Interface} (DBI).")
1336 (license license:perl-license)))
1338 (define-public perl-dbd-sqlite
1340 (name "perl-dbd-sqlite")
1345 "mirror://cpan/authors/id/I/IS/ISHIGAKI/DBD-SQLite-"
1349 "0sbj9lx9syzpknvjv8cz9jndg32qz775vy2prgq305npv3dsca9r"))))
1350 (build-system perl-build-system)
1351 (inputs `(("sqlite" ,sqlite)))
1352 (propagated-inputs `(("perl-dbi" ,perl-dbi)))
1353 (synopsis "SQlite interface for Perl")
1354 (description "DBD::SQLite is a Perl DBI driver for SQLite, that includes
1355 the entire thing in the distribution. So in order to get a fast transaction
1356 capable RDBMS working for your Perl project you simply have to install this
1357 module, and nothing else.")
1358 (license license:perl-license)
1359 (home-page "http://search.cpan.org/~ishigaki/DBD-SQLite/lib/DBD/SQLite.pm")))
1361 (define-public perl-sql-abstract
1363 (name "perl-sql-abstract")
1368 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1369 "SQL-Abstract-" version ".tar.gz"))
1372 "1aycggrvppy2zgkwwn85jkdz93n5gsx4dambrjk67k5067hayi4z"))))
1373 (build-system perl-build-system)
1375 `(("perl-module-install" ,perl-module-install)
1376 ("perl-test-deep" ,perl-test-deep)
1377 ("perl-test-exception" ,perl-test-exception)
1378 ("perl-test-warn" ,perl-test-warn)))
1380 `(("perl-hash-merge" ,perl-hash-merge)
1381 ("perl-moo" ,perl-moo)
1382 ("perl-mro-compat" ,perl-mro-compat)
1383 ("perl-text-balanced" ,perl-text-balanced)))
1384 (home-page "http://search.cpan.org/dist/SQL-Abstract")
1385 (synopsis "Generate SQL from Perl data structures")
1386 (description "This module was inspired by the excellent DBIx::Abstract.
1387 While based on the concepts used by DBIx::Abstract, the concepts used have
1388 been modified to make the SQL easier to generate from Perl data structures.
1389 The underlying idea is for this module to do what you mean, based on the data
1390 structures you provide it, so that you don't have to modify your code every
1391 time your data changes.")
1392 (license license:perl-license)))
1394 (define-public perl-sql-splitstatement
1396 (name "perl-sql-splitstatement")
1401 (uri (string-append "mirror://cpan/authors/id/E/EM/EMAZEP/"
1402 "SQL-SplitStatement-" version ".tar.gz"))
1405 "0bqg45k4c9qkb2ypynlwhpvzsl4ssfagmsalys18s5c79ps30z7p"))))
1406 (build-system perl-build-system)
1408 `(("perl-test-exception" ,perl-test-exception)))
1410 `(("perl-class-accessor" ,perl-class-accessor)
1411 ("perl-list-moreutils" ,perl-list-moreutils)
1412 ("perl-regexp-common" ,perl-regexp-common)
1413 ("perl-sql-tokenizer" ,perl-sql-tokenizer)))
1414 (home-page "http://search.cpan.org/dist/SQL-SplitStatement")
1415 (synopsis "Split SQL code into atomic statements")
1416 (description "This module tries to split any SQL code, even including
1417 non-standard extensions, into the atomic statements it is composed of.")
1418 (license license:perl-license)))
1420 (define-public perl-sql-tokenizer
1422 (name "perl-sql-tokenizer")
1427 (uri (string-append "mirror://cpan/authors/id/I/IZ/IZUT/"
1428 "SQL-Tokenizer-" version ".tar.gz"))
1431 "1qa2dfbzdlr5qqdam9yn78z5w3al5r8577x06qan8wv58ay6ka7s"))))
1432 (build-system perl-build-system)
1433 (home-page "http://search.cpan.org/dist/SQL-Tokenizer")
1434 (synopsis "SQL tokenizer")
1435 (description "SQL::Tokenizer is a tokenizer for SQL queries. It does not
1436 claim to be a parser or query verifier. It just creates sane tokens from a
1438 (license license:perl-license)))
1440 (define-public unixodbc
1448 "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-"
1451 (base32 "0f8y88rcc2akjvjv5y66yx7k0ms9h1s0vbcfy25j93didflhj59f"))))
1452 (build-system gnu-build-system)
1453 (synopsis "Data source abstraction library")
1454 (description "Unixodbc is a library providing an API with which to access
1455 data sources. Data sources include SQL Servers and any software with an ODBC
1457 (license license:lgpl2.1+)
1458 ;; COPYING contains copy of lgpl2.1 - but copyright notices just say "LGPL"
1459 (home-page "http://www.unixodbc.org")))
1461 (define-public unqlite
1467 ;; Contains bug fixes against the official release, and has an
1468 ;; autotooled build system.
1469 (uri (string-append "https://github.com/aidin36/tocc/releases/"
1471 "unqlite-unofficial-" version ".tar.gz"))
1474 "1sbpvhg15gadq0mpcy16q7k3rkg4b4dicpnn5xifpkpn02sqik3s"))))
1475 (build-system gnu-build-system)
1476 (arguments `(#:tests? #f)) ;No check target
1477 (home-page "http://www.unqlite.org")
1478 (synopsis "In-memory key/value and document store")
1480 "UnQLite is an in-process software library which implements a
1481 self-contained, serverless, zero-configuration, transactional NoSQL
1482 database engine. UnQLite is a document store database similar to
1483 MongoDB, Redis, CouchDB, etc. as well as a standard Key/Value store
1484 similar to BerkeleyDB, LevelDB, etc.")
1485 (license license:bsd-2)))
1487 (define-public redis
1493 (uri (string-append "http://download.redis.io/releases/redis-"
1497 "04s8cgvwjj1979s3hg8zkwc9pyn3jkjpz5zidp87kfcipifr385i"))))
1498 (build-system gnu-build-system)
1500 '(#:tests? #f ; tests related to master/slave and replication fail
1501 #:phases (modify-phases %standard-phases
1502 (delete 'configure))
1503 #:make-flags `("CC=gcc"
1506 ,(string-append "PREFIX="
1507 (assoc-ref %outputs "out")))))
1508 (synopsis "Key-value cache and store")
1509 (description "Redis is an advanced key-value cache and store. Redis
1510 supports many data structures including strings, hashes, lists, sets, sorted
1511 sets, bitmaps and hyperloglogs.")
1512 (home-page "http://redis.io/")
1513 (license license:bsd-3)))
1515 (define-public kyotocabinet
1517 (name "kyotocabinet")
1521 (uri (string-append "http://fallabs.com/kyotocabinet/pkg/"
1522 name "-" version ".tar.gz"))
1525 "0g6js20x7vnpq4p8ghbw3mh9wpqksya9vwhzdx6dnlf354zjsal1"))))
1526 (build-system gnu-build-system)
1530 "--disable-opt" ;"-march=native". XXX this also turns off -O0.
1531 (string-append "LDFLAGS=-Wl,-rpath="
1532 (assoc-ref %outputs "out") "/lib"))))
1533 (inputs `(("zlib" ,zlib)))
1534 (home-page "http://fallabs.com/kyotocabinet/")
1536 "Kyoto Cabinet is a modern implementation of the DBM database")
1538 "Kyoto Cabinet is a standalone file-based database that supports Hash
1539 and B+ Tree data storage models. It is a fast key-value lightweight
1540 database and supports many programming languages. It is a NoSQL database.")
1541 (license license:gpl3+)))
1543 (define-public tokyocabinet
1545 (name "tokyocabinet")
1550 (uri (string-append "http://fallabs.com/tokyocabinet/"
1551 name "-" version ".tar.gz"))
1554 "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0"))))
1555 (build-system gnu-build-system)
1558 (list "--enable-pthread" "--enable-off64" "--enable-fastest"
1559 (string-append "LDFLAGS=-Wl,-rpath="
1560 (assoc-ref %outputs "out") "/lib"))))
1563 (home-page "http://fallabs.com/tokyocabinet/")
1564 (synopsis "Tokyo Cabinet is a modern implementation of the DBM database")
1566 "Tokyo Cabinet is a library of routines for managing a database.
1567 The database is a simple data file containing records, each is a pair of a
1568 key and a value. Every key and value is serial bytes with variable length.
1569 Both binary data and character string can be used as a key and a value.
1570 There is neither concept of data tables nor data types. Records are
1571 organized in hash table, B+ tree, or fixed-length array.")
1572 (license license:lgpl2.1+)))
1574 (define-public wiredtiger
1581 "http://source.wiredtiger.com/releases/wiredtiger-"
1582 version ".tar.bz2"))
1585 "0krwnb2zfbhvjaskwl875qzd3y626s84zcciq2mxr5c5riw3yh6s"))))
1586 (build-system gnu-build-system)
1588 '(#:configure-flags '("--enable-lz4" "--with-builtins=snappy,zlib")
1590 (modify-phases %standard-phases
1591 (add-before 'check 'disable-test/fops
1593 ;; XXX: timed out after 3600 seconds of silence
1594 (substitute* "Makefile"
1600 ("snappy" ,snappy)))
1601 (home-page "http://source.wiredtiger.com/")
1602 (synopsis "NoSQL data engine")
1604 "WiredTiger is an extensible platform for data management. It supports
1605 row-oriented storage (where all columns of a row are stored together),
1606 column-oriented storage (where columns are stored in groups, allowing for
1607 more efficient access and storage of column subsets) and log-structured merge
1608 trees (LSM), for sustained throughput under random insert workloads.")
1609 (license license:gpl3) ; or GPL-2
1610 ;; configure.ac: WiredTiger requires a 64-bit build.
1611 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))))
1613 (define-public guile-wiredtiger
1615 (name "guile-wiredtiger")
1620 (url "https://framagit.org/a-guile-mind/guile-wiredtiger.git")
1621 (commit "070ed68139d99c279f058a6c293f00292d35dbd7")))
1622 (file-name (string-append name "-" version "-checkout"))
1625 "14rna97wsylajzxfif95wnblq85csgcfc666gh5dl0ssgd7x8llh"))))
1626 (build-system gnu-build-system)
1628 '(#:parallel-tests? #f ;; tests can't be run in parallel, yet.
1630 (list (string-append "--with-libwiredtiger-prefix="
1631 (assoc-ref %build-inputs "wiredtiger")))
1632 #:make-flags '("GUILE_AUTO_COMPILE=0")))
1633 ;; TODO: Remove microkanren.scm when we have a separate package
1636 `(("autoconf" ,autoconf)
1637 ("automake" ,automake)
1638 ("pkg-config" ,pkg-config)))
1640 `(("wiredtiger" ,wiredtiger)
1641 ("guile" ,guile-2.2)))
1643 `(("guile-lib" ,guile-lib))) ;for (htmlprag)
1644 (synopsis "WiredTiger bindings for GNU Guile")
1646 "This package provides Guile bindings to the WiredTiger ``NoSQL''
1647 database. Various higher level database abstractions.")
1648 (home-page "https://framagit.org/a-guile-mind/guile-wiredtiger")
1649 (license license:gpl3+)))
1651 (define-public perl-db-file
1653 (name "perl-db-file")
1659 "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
1664 "11fks42kgscpia0mxx4lc9krm7q4gv6w7m5h3m2jr3dl7viv36hn"))))
1665 (build-system perl-build-system)
1666 (inputs `(("bdb" ,bdb)))
1667 (native-inputs `(("perl-test-pod" ,perl-test-pod)))
1669 `(#:phases (modify-phases %standard-phases
1671 'configure 'modify-config.in
1672 (lambda* (#:key inputs #:allow-other-keys)
1673 (substitute* "config.in"
1674 (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
1676 (home-page "http://search.cpan.org/dist/DB_File")
1678 "Perl5 access to Berkeley DB version 1.x")
1680 "The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
1681 (license license:perl-license)))
1689 (uri (string-append "https://github.com/LMDB/lmdb/archive/"
1690 "LMDB_" version ".tar.gz"))
1693 "0a7a8535csrvw71mrgx680m5d17bnxmmhcccij30idifi1cpi4pk"))))
1694 (build-system gnu-build-system)
1696 `(#:test-target "test"
1698 (modify-phases %standard-phases
1700 (lambda* (#:key outputs #:allow-other-keys)
1701 (chdir (string-append
1702 (getenv "PWD") "/lmdb-LMDB_" ,version "/libraries/liblmdb"))
1703 (substitute* "Makefile"
1704 (("/usr/local") (assoc-ref outputs "out")))
1706 (home-page "https://symas.com/products/lightning-memory-mapped-database")
1707 (synopsis "Lightning Memory-Mapped Database library")
1709 "The @dfn{Lightning Memory-Mapped Database} (LMDB) is a high-performance
1710 transactional database. Unlike more complex relational databases, LMDB handles
1711 only key-value pairs (stored as arbitrary byte arrays) and relies on the
1712 underlying operating system for caching and locking, keeping the code small and
1714 The use of ‘zero-copy’ memory-mapped files combines the persistence of classic
1715 disk-based databases with high read performance that scales linearly over
1716 multiple cores. The size of each database is limited only by the size of the
1717 virtual address space — not physical RAM.")
1718 (license license:openldap2.8)))
1720 (define-public libpqxx
1727 "http://pqxx.org/download/software/libpqxx/"
1728 name "-" version ".tar.gz"))
1731 "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09"))))
1732 (build-system gnu-build-system)
1734 `(("python" ,python-2)))
1735 (inputs `(("postgresql" ,postgresql)))
1737 `(#:tests? #f ; # FAIL: 1
1739 (modify-phases %standard-phases
1740 (add-before 'configure 'fix-sed-command
1742 ;; Newer sed versions error out if double brackets are not used.
1743 (substitute* "configure"
1744 (("\\[:space:\\]") "[[:space:]]"))
1746 (synopsis "C++ connector for PostgreSQL")
1748 "Libpqxx is a C++ library to enable user programs to communicate with the
1749 PostgreSQL database back-end. The database back-end can be local or it may be
1750 on another machine, accessed via TCP/IP.")
1751 (home-page "http://pqxx.org/")
1752 (license license:bsd-3)))
1754 (define-public python-peewee
1756 (name "python-peewee")
1761 (uri (pypi-uri "peewee" version))
1764 "10f2mrd5hw6rjklrzaix2lsxlgc8vx3xak54arcy6yd791zhchi3"))))
1765 (build-system python-build-system)
1767 `(#:tests? #f)) ; Fails to import test data
1769 `(("python-cython" ,python-cython)))
1770 (home-page "https://github.com/coleifer/peewee/")
1771 (synopsis "Small object-relational mapping utility")
1773 "Peewee is a simple and small ORM (object-relation mapping) tool. Peewee
1774 handles converting between pythonic values and those used by databases, so you
1775 can use Python types in your code without having to worry. It has built-in
1776 support for sqlite, mysql and postgresql. If you already have a database, you
1777 can autogenerate peewee models using @code{pwiz}, a model generator.")
1778 (license license:expat)))
1780 (define-public python2-peewee
1781 (package-with-python2 python-peewee))
1783 (define-public sqlcipher
1790 (uri (string-append "https://github.com/sqlcipher/" name
1791 "/archive/v" version ".tar.gz"))
1793 (base32 "1gv58dlbpzrmznly52yqbxgvii0ib88zr3aszla1bsypwjr6flff"))
1794 (file-name (string-append name "-" version ".tar.gz"))))
1795 (build-system gnu-build-system)
1797 `(("libcrypto" ,openssl)
1798 ("libtcl8.6" ,tcl))) ; required for running the tests
1803 '("--enable-tempstore=yes"
1804 "CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_ENABLE_FTS3"
1805 "LDFLAGS=-lcrypto -ltcl8.6"
1807 ;; tests cannot be run from the Makefile
1808 ;; see: <https://github.com/sqlcipher/sqlcipher/issues/172>
1809 #:test-target "testfixture"
1811 (modify-phases %standard-phases
1812 (add-before 'check 'build-test-runner
1813 (assoc-ref %standard-phases 'check))
1817 (system* "./testfixture" "test/crypto.test")))))))
1818 (home-page "https://www.zetetic.net/sqlcipher/")
1820 "Library providing transparent encryption of SQLite database files")
1821 (description "SQLCipher is an implementation of SQLite, extended to
1822 provide transparent 256-bit AES encryption of database files. Pages are
1823 encrypted before being written to disk and are decrypted when read back. It’s
1824 well suited for protecting embedded application databases and for mobile
1827 ;; src/{crypto.c,crypto_impl.c,crypto.h,crypto_cc.c,crypto_libtomcrypt.c},
1828 ;; src/{crypto_openssl.c,sqlcipher.h}, tool/crypto-speedtest.tcl,
1829 ;; test/crypto.test are licensed under a 3-clause BSD license. All other
1830 ;; source files are in the public domain.
1831 (license (list license:public-domain license:bsd-3))))
1833 (define-public python-pyodbc-c
1835 (name "python-pyodbc-c")
1840 (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
1841 "archive.tar.gz?ref=v" version))
1844 "05aq2297k779xidmxcwkrrxjvj1bh2q7d9a1rcjv6zr15y764ga9"))
1845 (file-name (string-append name "-" version ".tar.gz"))))
1846 (build-system python-build-system)
1848 `(("unixodbc" ,unixodbc)))
1850 `(;; No unit tests exist.
1852 (home-page "https://github.com/mkleehammer/pyodbc")
1853 (synopsis "Python ODBC Library")
1854 (description "@code{python-pyodbc-c} provides a Python DB-API driver
1856 (license (license:x11-style "file://LICENSE.TXT"))))
1858 (define-public python2-pyodbc-c
1859 (package-with-python2 python-pyodbc-c))
1861 (define-public python-pyodbc
1863 (name "python-pyodbc")
1868 (uri (pypi-uri "pyodbc" version))
1871 "0a83zwz3h1agshnsc6r7al6q83222w8601gpzzzjvjz5m56ghmcn"))
1872 (file-name (string-append name "-" version ".tar.gz"))))
1873 (build-system python-build-system)
1875 `(("unixodbc" ,unixodbc)))
1877 `(;; No unit tests exist.
1879 (home-page "https://github.com/mkleehammer/pyodbc")
1880 (synopsis "Python ODBC Library")
1881 (description "@code{python-pyodbc} provides a Python DB-API driver
1883 (license (license:x11-style "file:///LICENSE.TXT"))))
1885 (define-public python2-pyodbc
1886 (package-with-python2 python-pyodbc))
1888 (define-public mdbtools
1895 (uri (string-append "https://github.com/brianb/mdbtools/archive/"
1899 "05hbmxcq173kzb899gdi3bz2qcc1vi3n1qbbkwpsvrq7ggf11wyw"))
1900 (file-name (string-append name "-" version ".tar.gz"))))
1901 (build-system gnu-build-system)
1905 `(("autoconf" ,autoconf)
1906 ("automake" ,automake)
1907 ("libtool" ,libtool)
1908 ("pkg-config" ,pkg-config)
1909 ("txt2man" ,txt2man)
1913 (modify-phases %standard-phases
1914 (add-after 'unpack 'autoreconf
1916 (zero? (system* "autoreconf" "-vfi")))))))
1917 (home-page "http://mdbtools.sourceforge.net/")
1918 (synopsis "Read Microsoft Access databases")
1919 (description "MDB Tools is a set of tools and applications to read the
1920 proprietary MDB file format used in Microsoft's Access database package. This
1921 includes programs to export schema and data from Microsoft's Access database
1922 file format to other databases such as MySQL, Oracle, Sybase, PostgreSQL,
1923 etc., and an SQL engine for performing simple SQL queries.")
1924 (license (list license:lgpl2.0
1927 (define-public python-lmdb
1929 (name "python-lmdb")
1933 (uri (pypi-uri "lmdb" version))
1936 "0xdpb298fyl68acadbwv5801wcwfpnhc7sm4bnrq1x4bd5dhhsql"))
1937 (modules '((guix build utils)))
1939 ;; Delete bundled lmdb source files.
1941 (for-each delete-file (list "lib/lmdb.h"
1946 (build-system python-build-system)
1951 (modify-phases %standard-phases
1952 (add-before 'build 'use-system-lmdb
1953 (lambda* (#:key inputs #:allow-other-keys)
1954 (let ((lmdb (assoc-ref inputs "lmdb")))
1955 (setenv "LMDB_FORCE_SYSTEM" "set")
1956 (setenv "LMDB_INCLUDEDIR" (string-append lmdb "/include"))
1957 (setenv "LMDB_LIBDIR" (string-append lmdb "/lib"))
1959 ;; Tests fail with: ‘lmdb.tool: Please specify environment (--env)’.
1961 (home-page "https://github.com/dw/py-lmdb")
1962 (synopsis "Python binding for the ‘Lightning’ database (LMDB)")
1964 "python-lmdb or py-lmdb is a Python binding for the @dfn{Lightning
1965 Memory-Mapped Database} (LMDB), a high-performance key-value store.")
1967 (list license:openldap2.8
1968 ;; ‘lib/win32/inttypes.h’ and ‘lib/win32-stdint/stdint.h’ are BSD-3,
1969 ;; but not actually needed on platforms currently supported by Guix.
1972 (define-public python2-lmdb
1973 (package-with-python2 python-lmdb))
1975 (define-public python-orator
1977 (name "python-orator")
1981 (uri (pypi-uri "orator" version))
1984 "14r58z64fdp76ixnvmi4lni762b405ynmsx6chr1qihs3yl9zn6c"))))
1985 (build-system python-build-system)
1988 (modify-phases %standard-phases
1989 (add-after 'unpack 'loosen-dependencies
1990 ;; Tests are not actually run since they are not included with the
1991 ;; distributed package, but dependencies are checked.
1993 (substitute* "setup.py"
1995 (("flexmock==0.9.7") "flexmock")
1996 ;; The pytest-mock package is out of date, so we remove minimum
1997 ;; version requirement.
1998 (("pytest-mock.*'") "pytest-mock'"))
2001 `(("python-pytest-mock" ,python-pytest-mock)
2002 ("python-pytest" ,python-pytest)
2003 ("python-flexmock" ,python-flexmock)))
2005 `(("python-backpack" ,python-backpack)
2006 ("python-blinker" ,python-blinker)
2007 ("python-cleo" ,python-cleo)
2008 ("python-faker" ,python-faker)
2009 ("python-inflection" ,python-inflection)
2010 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
2011 ("python-pendulum" ,python-pendulum)
2012 ("python-pyaml" ,python-pyaml)
2013 ("python-pygments" ,python-pygments)
2014 ("python-simplejson" ,python-simplejson)
2015 ("python-six" ,python-six)
2016 ("python-wrapt" ,python-wrapt)))
2017 (home-page "https://orator-orm.com/")
2018 (synopsis "ActiveRecord ORM for Python")
2020 "Orator provides a simple ActiveRecord-like Object Relational Mapping
2021 implementation for Python.")
2022 (license license:expat)
2023 (properties `((python2-variant . ,(delay python2-orator))))))
2025 (define-public python2-orator
2026 (package-with-python2 (strip-python2-variant python-orator)))
2028 (define-public virtuoso-ose
2030 (name "virtuoso-ose")
2036 "https://github.com/openlink/virtuoso-opensource/releases/"
2037 "download/v" version "/virtuoso-opensource-" version ".tar.gz"))
2039 (base32 "12dqam1gc1v93l0bj0vlpvjqppki6y1hqrlznywxnw0rrz9pb002"))))
2040 (build-system gnu-build-system)
2042 `(#:tests? #f ; Tests require a network connection.
2043 ;; TODO: Removing the libsrc/zlib source directory breaks the build.
2044 ;; This indicates that the internal zlib code may still be used.
2045 #:configure-flags '("--without-internal-zlib"
2046 "--with-readline")))
2048 `(("openssl" ,openssl)
2049 ("net-tools" ,net-tools)
2050 ("readline" ,readline)
2052 (home-page "http://vos.openlinksw.com/owiki/wiki/VOS/")
2053 (synopsis "Multi-model database system")
2054 (description "Virtuoso is a scalable cross-platform server that combines
2055 relational, graph, and document data management with web application server
2056 and web services platform functionality.")
2057 ;; configure: error: ... can only be build on 64bit platforms
2058 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))
2059 (license license:gpl2)))
2061 (define-public r-rmysql
2068 (uri (cran-uri "RMySQL" version))
2071 "01891kn263b02y6addgpy3gn5axg7m10bqbqv7dg9yx9k85am590"))))
2072 (properties `((upstream-name . "RMySQL")))
2073 (build-system r-build-system)
2075 `(("pkg-config" ,pkg-config)))
2077 `(("mariadb" ,mariadb)
2080 `(("r-dbi" ,r-dbi)))
2081 (home-page "https://github.com/r-dbi/RMySQL")
2082 (synopsis "Database interface and MySQL driver for R")
2084 "This package provides a DBI interface to MySQL / MariaDB. The RMySQL
2085 package contains an old implementation based on legacy code from S-PLUS which
2086 is being phased out. A modern MySQL client based on Rcpp is available from
2087 the RMariaDB package.")
2088 (license license:gpl2)))
2090 (define-public python-ccm
2097 (uri (pypi-uri "ccm" version))
2100 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
2101 (build-system python-build-system)
2103 `(("python-pyyaml" ,python-pyyaml)
2104 ;; Not listed in setup.py, but used in ccmlib/node.py for full
2106 ("python-psutil" ,python-psutil)
2107 ("python-six" ,python-six)))
2108 (home-page "https://github.com/pcmanus/ccm")
2109 (synopsis "Cassandra Cluster Manager for Apache Cassandra clusters on
2111 (description "Cassandra Cluster Manager is a development tool for testing
2112 local Cassandra clusters. It creates, launches and removes Cassandra clusters
2114 (license license:asl2.0)))
2116 (define-public python2-ccm
2117 (package-with-python2 python-ccm))
2119 (define-public python2-pysqlite
2121 (name "python2-pysqlite")
2126 (uri (pypi-uri "pysqlite" version))
2129 "1424gwq9sil2ffmnizk60q36vydkv8rxs6m7xs987kz8cdc37lqp"))))
2130 (build-system python-build-system)
2132 `(("sqlite" ,sqlite)))
2134 `(#:python ,python-2 ; incompatible with Python 3
2135 #:tests? #f)) ; no test target
2136 (home-page "https://github.com/ghaering/pysqlite")
2137 (synopsis "SQLite bindings for Python")
2139 "Pysqlite provides SQLite bindings for Python that comply to the
2140 Database API 2.0T.")
2141 (license license:zlib)))
2143 (define-public python-sqlalchemy
2145 (name "python-sqlalchemy")
2150 (uri (string-append "https://pypi.python.org/packages/source/S/"
2151 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
2154 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
2155 (build-system python-build-system)
2157 `(("python-cython" ,python-cython) ;for c extensions
2158 ("python-pytest" ,python-pytest)
2159 ("python-mock" ,python-mock))) ;for tests
2162 (modify-phases %standard-phases
2164 (lambda _ (zero? (system* "py.test")))))))
2165 (home-page "http://www.sqlalchemy.org")
2166 (synopsis "Database abstraction library")
2168 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
2169 gives application developers the full power and flexibility of SQL. It
2170 provides a full suite of well known enterprise-level persistence patterns,
2171 designed for efficient and high-performing database access, adapted into a
2172 simple and Pythonic domain language.")
2173 (license license:x11)))
2175 (define-public python2-sqlalchemy
2176 (package-with-python2 python-sqlalchemy))
2178 (define-public python-sqlalchemy-utils
2180 (name "python-sqlalchemy-utils")
2185 (uri (pypi-uri "SQLAlchemy-Utils" version))
2188 "1myn71dn8j74xglyh46f12sh8ywb7j0j732rzwq70kvwwnq32m73"))))
2189 (build-system python-build-system)
2191 '(#:tests? #f)) ; FIXME: Many tests require a running database server.
2193 ;; (modify-phases %standard-phases
2196 ;; (zero? (system* "py.test" "sqlalchemy_utils" "tests")))))
2198 `(("python-six" ,python-six)
2199 ("python-sqlalchemy" ,python-sqlalchemy)))
2201 `(("python-dateutil" ,python-dateutil)
2202 ("python-flexmock" ,python-flexmock)
2203 ("python-psycopg2" ,python-psycopg2)
2204 ("python-pytest" ,python-pytest)
2205 ("python-pytz" ,python-pytz)))
2206 (home-page "https://github.com/kvesteri/sqlalchemy-utils")
2207 (synopsis "Various utility functions for SQLAlchemy")
2209 "SQLAlchemy-utils provides various utility functions and custom data types
2210 for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
2212 You might also want to install the following optional dependencies:
2214 @item @code{python-passlib}
2215 @item @code{python-babel}
2216 @item @code{python-cryptography}
2217 @item @code{python-pytz}
2218 @item @code{python-psycopg2}
2219 @item @code{python-furl}
2220 @item @code{python-flask-babel}
2223 (license license:bsd-3)))
2225 (define-public python2-sqlalchemy-utils
2226 (package-with-python2 python-sqlalchemy-utils))
2228 (define-public python-alembic
2230 (name "python-alembic")
2235 (uri (pypi-uri "alembic" version))
2238 "0cm73vabrqj92v7a0wwvldj8j7bc7dwv358kvkk7p87gx7mm2a04"))))
2239 (build-system python-build-system)
2241 `(("python-mock" ,python-mock)
2242 ("python-pytest-cov" ,python-pytest-cov)))
2244 `(("python-dateutil" ,python-dateutil)
2245 ("python-sqlalchemy" ,python-sqlalchemy)
2246 ("python-mako" ,python-mako)
2247 ("python-editor" ,python-editor)))
2248 (home-page "https://bitbucket.org/zzzeek/alembic")
2250 "Database migration tool for SQLAlchemy")
2252 "Alembic is a lightweight database migration tool for usage with the
2253 SQLAlchemy Database Toolkit for Python.")
2254 (license license:expat)))
2256 (define-public python2-alembic
2257 (package-with-python2 python-alembic))
2259 (define-public python-pickleshare
2261 (name "python-pickleshare")
2266 (uri (pypi-uri "pickleshare" version))
2268 (base32 "0yvk14dzxk7g6qpr7iw23vzqbsr0dh4ij4xynkhnzpfz4xr2bac4"))))
2269 (build-system python-build-system)
2271 `(#:phases (modify-phases %standard-phases
2274 (invoke "pytest"))))))
2276 `(("python-pytest" ,python-pytest)))
2277 (home-page "https://github.com/vivainio/pickleshare")
2278 (synopsis "Tiny key value database with concurrency support")
2280 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
2281 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
2282 shelve, many processes can access the database simultaneously. Changing a
2283 value in database is immediately visible to other processes accessing the same
2284 database. Concurrency is possible because the values are stored in separate
2285 files. Hence the “database” is a directory where all files are governed by
2287 (properties `((python2-variant . ,(delay python2-pickleshare))))
2288 (license license:expat)))
2290 (define-public python2-pickleshare
2291 (let ((pickleshare (package-with-python2
2292 (strip-python2-variant python-pickleshare))))
2293 (package (inherit pickleshare)
2294 (propagated-inputs `(("python2-pathlib2" ,python2-pathlib2)
2295 ,@(package-propagated-inputs pickleshare))))))
2297 (define-public python-apsw
2299 (name "python-apsw")
2300 (version "3.20.1-r1")
2304 (uri (string-append "https://github.com/rogerbinns/apsw/archive/"
2306 (file-name (string-append "apsw-" version ".tar.gz"))
2309 "00ai7m2pqi26qaflhz314d8k5i3syw7xzr145fhfl0crhyh6adz2"))))
2310 (build-system python-build-system)
2312 `(("sqlite" ,sqlite)))
2315 (modify-phases %standard-phases
2318 (invoke "python" "setup.py" "build" "--enable-all-extensions")
2320 (add-after 'build 'build-test-helper
2322 (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
2323 "-I." "-Isqlite3" "src/testextension.c")
2326 (add-after 'install 'check
2327 (lambda* (#:key inputs outputs #:allow-other-keys)
2328 (add-installed-pythonpath inputs outputs)
2329 (invoke "python" "setup.py" "test")
2331 (home-page "https://github.com/rogerbinns/apsw/")
2332 (synopsis "Another Python SQLite Wrapper")
2333 (description "APSW is a Python wrapper for the SQLite
2334 embedded relational database engine. In contrast to other wrappers such as
2335 pysqlite it focuses on being a minimal layer over SQLite attempting just to
2336 translate the complete SQLite API into Python.")
2337 (license license:zlib)))
2339 (define-public python2-apsw
2340 (package-with-python2 python-apsw))
2342 (define-public python2-neo4j-driver
2344 (name "python2-neo4j-driver")
2345 ;; NOTE: When upgrading to 1.5.0, please add a python3 variant.
2349 (uri (pypi-uri "neo4j-driver" version))
2352 "011r1vh182p8mm83d8dz9rfnc3l7rf7fd00cyrbyfzi71jmc4g98"))))
2353 (build-system python-build-system)
2355 `(#:python ,python-2))
2356 (home-page "https://neo4j.com/developer/python/")
2357 (synopsis "Neo4j driver code written in Python")
2358 (description "This package provides the Neo4j Python driver that connects
2359 to the database using Neo4j's binary protocol. It aims to be minimal, while
2360 being idiomatic to Python.")
2361 (license license:asl2.0)))
2363 (define-public python2-py2neo
2365 (name "python2-py2neo")
2369 (uri (pypi-uri "py2neo" version))
2372 "1f1q95vqcvlc3nsc33p841swnjdcjazddlq2dzi3qfnjqjrajxw1"))))
2373 (build-system python-build-system)
2375 `(#:python ,python-2))
2376 (home-page "http://py2neo.org")
2377 (synopsis "Library and toolkit for working with Neo4j in Python")
2378 (description "This package provides a client library and toolkit for
2379 working with Neo4j from within Python applications and from the command
2380 line. The core library has no external dependencies and has been carefully
2381 designed to be easy and intuitive to use.")
2382 (license license:asl2.0)))
2384 (define-public python-psycopg2
2386 (name "python-psycopg2")
2391 (uri (pypi-uri "psycopg2" version))
2394 "0rda1j02ds6s28752fhmpwg761sh6jsxi1gpczqkrd28cki1cywv"))))
2395 (build-system python-build-system)
2397 ;; Tests would require a postgresql database "psycopg2_test"
2398 ;; and a running postgresql database management service.
2399 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
2401 `(("postgresql" ,postgresql))) ; libpq
2402 (home-page "http://initd.org/psycopg/")
2403 (synopsis "Python PostgreSQL adapter")
2405 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
2406 (license license:lgpl3+)))
2408 (define-public python2-psycopg2
2409 (package-with-python2 python-psycopg2))
2411 (define-public python-sadisplay
2413 (name "python-sadisplay")
2418 (uri (pypi-uri "sadisplay" version))
2421 "01d9lxhmgpb68gy8rd6zj6fcwp84n2qq210n1qsk3qbsir79bzh4"))))
2422 (build-system python-build-system)
2424 `(("python-sqlalchemy" ,python-sqlalchemy)))
2427 `(("python-nose" ,python-nose)))
2428 (home-page "https://bitbucket.org/estin/sadisplay")
2429 (synopsis "SQLAlchemy schema displayer")
2430 (description "This package provides a program to build Entity
2431 Relationship diagrams from a SQLAlchemy model (or directly from the
2433 (license license:bsd-3)))
2435 (define-public python2-sadisplay
2436 (package-with-python2 python-sadisplay))
2438 (define-public python-mysqlclient
2440 (name "python-mysqlclient")
2445 (uri (pypi-uri "mysqlclient" version))
2448 "0qkj570x4rbsblji6frvsvp2v1ap32dqzj1lq62zp9515ffsyaj5"))))
2449 (build-system python-build-system)
2451 `(("mariadb" ,mariadb)
2452 ("nose" ,python-nose)
2453 ("mock" ,python-mock)
2454 ("py.test" ,python-pytest)))
2458 ("openssl" ,openssl)))
2459 (home-page "https://github.com/PyMySQL/mysqlclient-python")
2460 (synopsis "MySQLdb is an interface to the popular MySQL database server for Python")
2461 (description "MySQLdb is an interface to the popular MySQL database server
2462 for Python. The design goals are:
2464 @item Compliance with Python database API version 2.0 [PEP-0249],
2465 @item Thread-safety,
2466 @item Thread-friendliness (threads will not block each other).
2468 (license license:gpl2)))
2470 (define-public python2-mysqlclient
2471 (package-with-python2 python-mysqlclient))
2473 (define-public python-hiredis
2475 (name "python-hiredis")
2480 (uri (pypi-uri "hiredis" version))
2483 "1dfm2k9l9zar9nw9fwmm74zrgraxdxs04vx9li56fjcf289qx5fa"))))
2484 (build-system python-build-system)
2488 (home-page "https://github.com/redis/hiredis-py")
2489 (synopsis "Python extension that wraps protocol parsing code in hiredis")
2490 (description "Python-hiredis is a python extension that wraps protocol
2491 parsing code in hiredis. It primarily speeds up parsing of multi bulk replies.")
2492 (license license:bsd-3)))
2494 (define-public python2-hiredis
2495 (package-with-python2 python-hiredis))
2497 (define-public python-fakeredis
2499 (name "python-fakeredis")
2504 (uri (pypi-uri "fakeredis" version))
2507 "0zncahj3byyasyfx9i7k991ph0n0lq8v3a21pqri5qxn9564bk9r"))))
2508 (build-system python-build-system)
2512 (home-page "https://github.com/jamesls/fakeredis")
2513 (synopsis "Fake implementation of redis API for testing purposes")
2514 (description "Fakeredis is a pure python implementation of the redis-py
2515 python client that simulates talking to a redis server. This was created for a
2516 single purpose: to write unittests. Setting up redis is not hard, but many time
2517 you want to write unittests that do not talk to an external server (such as
2518 redis). This module now allows tests to simply use this module as a reasonable
2519 substitute for redis.")
2520 (license license:bsd-3)))
2522 (define-public python2-fakeredis
2523 (package-with-python2 python-fakeredis))
2525 (define-public python-redis
2527 (name "python-redis")
2532 (uri (pypi-uri "redis" version))
2534 (base32 "03vcgklykny0g0wpvqmy8p6azi2s078317wgb2xjv5m2rs9sjb52"))))
2535 (build-system python-build-system)
2536 ;; Tests require a running Redis server
2537 (arguments '(#:tests? #f))
2538 ;; As long as we are not running test, we do not need this input :-)
2540 ;; `(("python-pytest" ,python-pytest)))
2541 (home-page "https://github.com/andymccurdy/redis-py")
2542 (synopsis "Redis Python client")
2544 "This package provides a Python interface to the Redis key-value store.")
2545 (license license:expat)))
2547 (define-public python2-redis
2548 (package-with-python2 python-redis))
2550 (define-public python-rq
2557 (uri (pypi-uri "rq" version))
2559 (base32 "0gaq5pnh0zy46r8jvygi0ifbvz3pq6i7xla78ijcgjw0x77qzsdh"))))
2560 (build-system python-build-system)
2562 `(("python-click" ,python-click)
2563 ("python-redis" ,python-redis)))
2564 (home-page "http://python-rq.org/")
2565 (synopsis "Simple job queues for Python")
2567 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2568 processing them in the background with workers. It is backed by Redis and it
2569 is designed to have a low barrier to entry.")
2570 (license license:bsd-2)))
2572 (define-public python2-rq
2573 (package-with-python2 python-rq))
2575 (define-public python-trollius-redis
2577 (name "python-trollius-redis")
2582 (uri (pypi-uri "trollius_redis" version))
2585 "0k3vypszmgmaipgw9xscvgm79h2zd6p6ci8gdp5sxl6g5kbqr9fy"))))
2586 (build-system python-build-system)
2587 ;; TODO: Tests require packaging 'hiredis'.
2588 (arguments '(#:tests? #f))
2589 (home-page "https://github.com/benjolitz/trollius-redis")
2590 (synopsis "Port of asyncio-redis to trollius")
2591 (description "@code{trollius-redis} is a Redis client for Python
2592 trollius. It is an asynchronious IO (PEP 3156) implementation of the
2594 (license license:bsd-2)))
2596 (define-public python2-trollius-redis
2597 (package-with-python2 python-trollius-redis))
2599 (define-public python-sqlparse
2601 (name "python-sqlparse")
2605 (uri (pypi-uri "sqlparse" version))
2608 "1v3xh0bkfhb262dbndgzhivpnhdwavdzz8jjhx9vx0xbrx2880nf"))))
2609 (build-system python-build-system)
2612 (modify-phases %standard-phases
2614 (lambda _ (zero? (system* "py.test")))))))
2616 `(("python-pytest" ,python-pytest)))
2617 (home-page "https://github.com/andialbrecht/sqlparse")
2618 (synopsis "Non-validating SQL parser")
2619 (description "Sqlparse is a non-validating SQL parser for Python. It
2620 provides support for parsing, splitting and formatting SQL statements.")
2621 (license license:bsd-3)))
2623 (define-public python2-sqlparse
2624 (package-with-python2 python-sqlparse))
2626 (define-public python-sql
2633 (uri (pypi-uri "python-sql" version))
2636 "0p6kaqj02vz0habmdx37zjk6hjxdfm8aw737zs059vvpr70ird87"))))
2637 (build-system python-build-system)
2638 (home-page "https://python-sql.tryton.org/")
2639 (synopsis "Library to write SQL queries in a pythonic way")
2640 (description "@code{python-sql} is a library to write SQL queries, that
2641 transforms idiomatic python function calls to well-formed SQL queries.")
2642 (license license:bsd-3)))
2644 (define-public python2-sql
2645 (package-with-python2 python-sql))
2647 (define-public mongo-tools
2649 (name "mongo-tools")
2652 (origin (method git-fetch)
2654 (url "https://github.com/mongodb/mongo-tools")
2655 (commit (string-append "r" version))))
2656 (file-name (git-file-name name version))
2659 "1bcsz5cvj39a7nsxsfqmz9igrw33j6yli9kffigqyscs52amw7x1"))))
2660 (build-system go-build-system)
2662 `(#:import-path "github.com/mongodb/mongo-tools"
2663 #:modules ((srfi srfi-1)
2664 (guix build go-build-system)
2668 '("bsondump" "mongodump" "mongoexport" "mongofiles"
2669 "mongoimport" "mongooplog" "mongorestore"
2670 "mongostat" "mongotop")))
2671 (modify-phases %standard-phases
2672 (add-after 'unpack 'delete-bundled-source-code
2674 (delete-file-recursively
2675 "src/github.com/mongodb/mongo-tools/vendor")
2677 ;; We don't need to install the source code for end-user applications
2678 (delete 'install-source)
2681 (every (lambda (tool)
2684 ;; This is where the tests expect to find the
2686 "-o" ,(string-append
2687 "src/github.com/mongodb/mongo-tools/bin/"
2690 "-tags=\"ssl sasl\""
2692 "-extldflags=-Wl,-z,now,-z,relro"
2694 "src/github.com/mongodb/mongo-tools/"
2695 tool "/main/" tool ".go"))))
2696 (simple-format #t "build: running ~A\n"
2697 (string-join command))
2698 (apply invoke command)))
2702 (with-directory-excursion "src"
2703 (every (lambda (tool)
2706 (string-append "github.com/mongodb/mongo-tools/" tool)))
2709 (lambda* (#:key outputs #:allow-other-keys)
2710 (for-each (lambda (tool)
2712 (string-append "src/github.com/mongodb/mongo-tools/bin/" tool)
2713 (string-append (assoc-ref outputs "out")
2717 `(("go-github.com-howeyc-gopass" ,go-github.com-howeyc-gopass)
2718 ("go-github.com-jessevdk-go-flags" ,go-github.com-jessevdk-go-flags)
2719 ("go-golang.org-x-crypto-ssh-terminal" ,go-golang.org-x-crypto-ssh-terminal)
2720 ("go-gopkg.in-mgo.v2" ,go-gopkg.in-mgo.v2)
2721 ("go-gopkg.in-tomb.v2" ,go-gopkg.in-tomb.v2)
2722 ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)
2723 ("go-github.com-smartystreets-goconvey" ,go-github.com-smartystreets-goconvey)))
2724 (home-page "https://github.com/mongodb/mongo-tools")
2725 (synopsis "Various tools for interacting with MongoDB and BSON")
2727 "This package includes a collection of tools related to MongoDB.
2730 Display BSON files in a human-readable format
2732 Convert data from JSON, TSV or CSV and insert them into a collection
2734 Write an existing collection to CSV or JSON format
2735 @item mongodump/mongorestore
2736 Dump MongoDB backups to disk in the BSON format
2738 Read MongoDB backups in the BSON format, and restore them to a live database
2740 Monitor live MongoDB servers, replica sets, or sharded clusters
2742 Read, write, delete, or update files in GridFS
2744 Replay oplog entries between MongoDB servers
2746 Monitor read/write activity on a mongo server
2748 (license license:asl2.0)))
2750 (define-public apache-arrow
2752 (name "apache-arrow")
2758 (url "https://github.com/apache/arrow")
2759 (commit (string-append "apache-arrow-" version))))
2760 (file-name (git-file-name name version))
2763 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2764 (build-system cmake-build-system)
2768 (modify-phases %standard-phases
2769 (add-before 'configure 'enter-source-directory
2770 (lambda _ (chdir "cpp") #t))
2771 (add-after 'unpack 'set-env
2773 (setenv "BOOST_ROOT" (assoc-ref %build-inputs "boost"))
2774 (setenv "BROTLI_HOME" (assoc-ref %build-inputs "brotli"))
2775 (setenv "FLATBUFFERS_HOME" (assoc-ref %build-inputs "flatbuffers"))
2776 (setenv "JEMALLOC_HOME" (assoc-ref %build-inputs "jemalloc"))
2777 (setenv "RAPIDJSON_HOME" (assoc-ref %build-inputs "rapidjson"))
2779 #:build-type "Release"
2781 (list "-DARROW_PYTHON=ON"
2783 ;; Install to PREFIX/lib (the default is
2785 (string-append "-DCMAKE_INSTALL_LIBDIR="
2786 (assoc-ref %outputs "out")
2789 ;; XXX These Guix package offer static
2790 ;; libraries that are not position independent,
2791 ;; and ld fails to link them into the arrow .so
2792 "-DARROW_WITH_SNAPPY=OFF"
2793 "-DARROW_WITH_ZLIB=OFF"
2794 "-DARROW_WITH_ZSTD=OFF"
2795 "-DARROW_WITH_LZ4=OFF"
2797 ;; Building the tests forces on all the
2798 ;; optional features and the use of static
2800 "-DARROW_BUILD_TESTS=OFF"
2801 "-DARROW_BUILD_STATIC=OFF")))
2804 ("rapidjson" ,rapidjson)
2805 ("brotli" ,google-brotli)
2806 ("flatbuffers" ,flatbuffers)
2807 ;; Arrow is not yet compatible with jemalloc >= 5:
2808 ;; https://issues.apache.org/jira/browse/ARROW-1141
2809 ("jemalloc" ,jemalloc-4.5.0)
2810 ("python-3" ,python)
2811 ("python-numpy" ,python-numpy)))
2812 (home-page "https://arrow.apache.org/")
2813 (synopsis "Columnar in-memory analytics")
2814 (description "Apache Arrow is a columnar in-memory analytics layer
2815 designed to accelerate big data. It houses a set of canonical in-memory
2816 representations of flat and hierarchical data along with multiple
2817 language-bindings for structure manipulation. It also provides IPC and common
2818 algorithm implementations.")
2819 (license license:asl2.0)))
2821 (define-public python-pyarrow
2823 (name "python-pyarrow")
2829 (url "https://github.com/apache/arrow")
2830 (commit (string-append "apache-arrow-" version))))
2831 (file-name (git-file-name name version))
2834 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2835 (build-system python-build-system)
2837 '(#:tests? #f ; XXX Test failures related to missing libhdfs, libhdfs3,
2838 ; and "Unsupported numpy type 22".
2840 (modify-phases %standard-phases
2841 (add-after 'unpack 'enter-source-directory
2842 (lambda _ (chdir "python") #t))
2843 (add-after 'unpack 'set-env
2845 (setenv "ARROW_HOME" (assoc-ref %build-inputs "apache-arrow"))
2848 `(("apache-arrow" ,apache-arrow)
2849 ("python-numpy" ,python-numpy)
2850 ("python-pandas" ,python-pandas)
2851 ("python-six" ,python-six)))
2854 ("python-cython" ,python-cython)
2855 ("python-pytest" ,python-pytest)
2856 ("python-setuptools-scm" ,python-setuptools-scm)))
2857 (home-page "https://arrow.apache.org/docs/python/")
2858 (synopsis "Python bindings for Apache Arrow")
2859 (description "This library provides a Pythonic API wrapper for the reference
2860 Arrow C++ implementation, along with tools for interoperability with pandas,
2861 NumPy, and other traditional Python scientific computing packages.")
2862 (license license:asl2.0)))
2864 (define-public python2-pyarrow
2865 (package-with-python2 python-pyarrow))