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 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 (list (search-patch "4store-fix-buildsystem.patch")))))
129 (build-system gnu-build-system)
133 ("autoconf" ,autoconf)
134 ("automake" ,automake)
135 ("gettext" ,gettext-minimal)
137 ("pcre" ,pcre "bin") ;for 'pcre-config'
138 ("pkg-config" ,pkg-config)))
144 ("readline" ,readline)
146 ("cyrus-sasl" ,cyrus-sasl)
148 ("util-linux" ,util-linux)))
151 (modify-phases %standard-phases
152 (add-after 'unpack 'generate-configure
154 (zero? (system* "sh" "autogen.sh")))))))
155 ;; http://www.4store.org has been down for a while now.
156 (home-page "https://github.com/4store/4store")
157 (synopsis "Clustered RDF storage and query engine")
158 (description "4store is a RDF/SPARQL store written in C, supporting
159 either single machines or networked clusters.")
160 (license license:gpl3+)))
168 (uri (string-append "mirror://gnu/gdbm/gdbm-"
172 "0lx201q20dvc70f8a3c9s7s18z15inlxvbffph97ngvrgnyjq9cx"))))
173 (arguments `(#:configure-flags '("--enable-libgdbm-compat")))
174 (build-system gnu-build-system)
175 (home-page "http://www.gnu.org.ua/software/gdbm")
177 "Hash library of database functions compatible with traditional dbm")
179 "GDBM is a library for manipulating hashed databases. It is used to
180 store key/value pairs in a file in a manner similar to the Unix dbm library
181 and provides interfaces to the traditional file format.")
182 (license license:gpl3+)))
184 (define-public go-gopkg.in-mgo.v2
186 (name "go-gopkg.in-mgo.v2")
187 (version "2016.08.01")
191 (url "https://github.com/go-mgo/mgo")
192 (commit (string-append "r" version))))
193 (file-name (git-file-name name version))
196 "0rwbi1z63w43b0z9srm8m7iz1fdwx7bq7n2mz862d6liiaqa59jd"))))
197 (build-system go-build-system)
199 `(#:import-path "gopkg.in/mgo.v2"
200 ;; TODO: The tests fail as MongoDB fails to start
201 ;; Error parsing command line: unrecognised option '--chunkSize'
204 (modify-phases %standard-phases
205 (delete 'reset-gzip-timestamps)
206 (add-before 'check 'start-mongodb
207 (lambda* (#:key tests? #:allow-other-keys)
209 (with-directory-excursion "src/gopkg.in/mgo.v2"
210 (invoke "make" "startdb")))))
211 (add-after 'check 'stop'mongodb
212 (lambda* (#:key tests? #:allow-other-keys)
214 (with-directory-excursion "src/gopkg.in/mgo.v2"
215 (invoke "make" "stopdb"))))))))
217 `(("go-gopkg.in-check.v1" ,go-gopkg.in-check.v1)
219 ("daemontools" ,daemontools)))
220 (synopsis "@code{mgo} offers a rich MongoDB driver for Go.")
222 "@code{mgo} (pronounced as mango) is a MongoDB driver for the Go language.
223 It implements a rich selection of features under a simple API following
224 standard Go idioms.")
225 (home-page "http://labix.org/mgo")
226 (license license:bsd-2)))
234 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
238 "1yx8wzhch5wwh016nh0kfxvknjkafv6ybkqh6nh7lxx50jqf5id9"))))
239 (build-system gnu-build-system)
240 (outputs '("out" ; programs, libraries, headers
241 "doc")) ; 94 MiB of HTML docs
243 '(#:tests? #f ; no check target available
244 #:disallowed-references ("doc")
246 (modify-phases %standard-phases
248 (lambda* (#:key outputs #:allow-other-keys)
249 (let ((out (assoc-ref outputs "out"))
250 (doc (assoc-ref outputs "doc")))
251 ;; '--docdir' is not honored, so we need to patch.
252 (substitute* "dist/Makefile.in"
253 (("docdir[[:blank:]]*=.*")
254 (string-append "docdir = " doc "/share/doc/bdb")))
257 (system* "./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")))
311 (system* "./dist/configure"
312 (string-append "--prefix=" out)
313 (string-append "CONFIG_SHELL=" (which "bash"))
314 (string-append "SHELL=" (which "bash"))
316 ;; Bdb doesn't recognize aarch64 as an architecture.
317 ,@(if (string=? "aarch64-linux" (%current-system))
318 '("--build=aarch64-unknown-linux-gnu")
321 ;; Remove 7 MiB of .a files.
324 ;; The compatibility mode is needed by some packages,
328 ;; The following flag is needed so that the inclusion
329 ;; of db_cxx.h into C++ files works; it leads to
330 ;; HAVE_CXX_STDHEADERS being defined in db_cxx.h.
331 "--enable-cxx"))))))))))
333 (define-public es-dump-restore
335 (name "es-dump-restore")
340 (uri (rubygems-uri "es_dump_restore" version))
343 "020yk7f1hw48clmf5501z3xv9shsdchyymcv0y2cci2c1xvr1mim"))))
344 (build-system ruby-build-system)
346 '(#:tests? #f)) ;; No testsuite.
348 `(("ruby-httpclient" ,ruby-httpclient)
349 ("ruby-multi-json" ,ruby-multi-json)
350 ("ruby-progress_bar" ,ruby-progress_bar)
351 ("ruby-rubyzip" ,ruby-rubyzip)
352 ("ruby-thor" ,ruby-thor)))
353 (synopsis "Utility for dumping and restoring ElasticSearch indexes")
355 "This package provides a utility for dumping the contents of an
356 ElasticSearch index to a compressed file and restoring the dumpfile back to an
357 ElasticSearch server")
358 (home-page "https://github.com/patientslikeme/es_dump_restore")
359 (license license:expat)))
361 (define-public leveldb
367 (uri (string-append "https://github.com/google/leveldb"
368 "/archive/v" version ".tar.gz"))
369 (file-name (string-append name "-" version ".tar.gz"))
372 "0r36bcrj6b2afsp4aw1gjai3jbs1c7734pxpc1jz7hh9nasyiazm"))))
373 (build-system gnu-build-system)
375 '(#:make-flags (list "CC=gcc")
377 (modify-phases %standard-phases
380 ;; There is no install target, so we do it here.
381 (lambda* (#:key outputs #:allow-other-keys)
382 (let* ((out (assoc-ref outputs "out"))
383 (lib (string-append out "/lib"))
384 (include (string-append out "/include")))
385 (for-each (lambda (file)
386 (install-file file lib))
387 (find-files "out-shared" "^libleveldb\\.so.*$"))
388 (copy-recursively "include" include)
391 `(("snappy" ,snappy)))
392 (home-page "http://leveldb.org/")
393 (synopsis "Fast key-value storage library")
395 "LevelDB is a fast key-value storage library that provides an ordered
396 mapping from string keys to string values.")
397 (license license:bsd-3)))
399 (define-public memcached
407 "https://memcached.org/files/memcached-" version ".tar.gz"))
410 "00szy9d4szaixi260dcd4846zci04y0sd47ia2lzg0bxkn2ywxcn"))))
411 (build-system gnu-build-system)
413 `(("libevent" ,libevent)
414 ("cyrus-sasl" ,cyrus-sasl)))
415 (home-page "https://memcached.org/")
416 (synopsis "In memory caching service")
417 (description "Memcached is a in memory key value store. It has a small
418 and generic API, and was originally intended for use with dynamic web
420 (license license:bsd-3)))
422 (define-public mongodb
428 (uri (string-append "https://github.com/mongodb/mongo/archive/r"
430 (file-name (string-append name "-" version ".tar.gz"))
432 (base32 "0676lvkljj7a5hdhv78dbykqnqrj9lbn9799mi84b8vbnzsq961r"))
433 (modules '((guix build utils)))
436 (for-each (lambda (dir)
437 (delete-file-recursively
438 (string-append "src/third_party/" dir)))
439 '("pcre-8.41" "scons-2.5.0" "snappy-1.1.3"
440 "valgrind-3.11.0" "wiredtiger"
441 "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))))))
600 'install 'remove-extra-binaries
601 (lambda* (#:key outputs #:allow-other-keys)
602 (let ((out (assoc-ref outputs "out")))
603 ;; Remove the 3 *_embedded files, which weigh in at
605 (for-each delete-file
606 (find-files (string-append out "/bin")
618 (home-page "http://www.mysql.com/")
619 (synopsis "Fast, easy to use, and popular database")
621 "MySQL is a fast, reliable, and easy to use relational database
622 management system that supports the standardized Structured Query
624 (license license:gpl2)))
626 (define-public mariadb
632 (uri (string-append "https://downloads.mariadb.org/f/"
633 name "-" version "/source/"
634 name "-" version ".tar.gz"))
637 "1m3ya6c3snnsyscd0waklayqfv0vhws52iizv2j5masj5xhdbfvk"))))
638 (build-system cmake-build-system)
641 '("-DBUILD_CONFIG=mysql_release"
642 ;; Linking with libarchive fails, like this:
644 ;; ld: /gnu/store/...-libarchive-3.2.2/lib/libarchive.a(archive_entry.o):
645 ;; relocation R_X86_64_32 against `.bss' can not be used when
646 ;; making a shared object; recompile with -fPIC
648 ;; For now, disable the features that that use libarchive (xtrabackup).
649 "-DWITH_LIBARCHIVE=OFF"
651 "-DDEFAULT_CHARSET=utf8"
652 "-DDEFAULT_COLLATION=utf8_general_ci"
653 "-DMYSQL_DATADIR=/var/lib/mysql"
654 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
655 "-DINSTALL_INFODIR=share/mysql/docs"
656 "-DINSTALL_MANDIR=share/man"
657 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
658 "-DINSTALL_SCRIPTDIR=bin"
659 "-DINSTALL_INCLUDEDIR=include/mysql"
660 "-DINSTALL_DOCREADMEDIR=share/mysql/docs"
661 "-DINSTALL_SUPPORTFILESDIR=share/mysql/support-files"
662 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
663 "-DINSTALL_DOCDIR=share/mysql/docs"
664 "-DINSTALL_SHAREDIR=share/mysql")
666 (modify-phases %standard-phases
668 'configure 'pre-configure
670 (setenv "CONFIG_SHELL" (which "sh"))
673 'install 'post-install
674 (lambda* (#:key outputs #:allow-other-keys)
675 (let* ((out (assoc-ref outputs "out"))
676 (test (assoc-ref outputs "test")))
677 (substitute* (string-append out "/bin/mysql_install_db")
679 (string-append "basedir=\"" out "\"")))
680 ;; Remove unneeded files for testing.
681 (with-directory-excursion out
682 (for-each delete-file-recursively
683 '("data" "mysql-test" "sql-bench"
684 "share/man/man1/mysql-test-run.pl.1")))))))))
689 `(("jemalloc" ,jemalloc)
696 (home-page "https://mariadb.org/")
697 (synopsis "SQL database server")
699 "MariaDB is a multi-user and multi-threaded SQL database server, designed
700 as a drop-in replacement of MySQL.")
701 (license license:gpl2)))
703 (define-public postgresql
709 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
710 version "/postgresql-" version ".tar.bz2"))
713 "06lkcwsf851z49zqcws5yc77s2yrbaazf2nvbk38hpp31rw6i8kf"))))
714 (build-system gnu-build-system)
716 `(#:configure-flags '("--with-uuid=e2fs")
718 (modify-phases %standard-phases
719 (add-before 'configure 'patch-/bin/sh
721 ;; Refer to the actual shell.
722 (substitute* '("src/bin/pg_ctl/pg_ctl.c"
723 "src/bin/psql/command.c")
724 (("/bin/sh") (which "sh")))
726 (add-after 'build 'build-contrib
728 (zero? (system* "make" "-C" "contrib"))))
729 (add-after 'install 'install-contrib
731 (zero? (system* "make" "-C" "contrib" "install")))))))
733 `(("readline" ,readline)
734 ("libuuid" ,util-linux)
736 (home-page "https://www.postgresql.org/")
737 (synopsis "Powerful object-relational database system")
739 "PostgreSQL is a powerful object-relational database system. It is fully
740 ACID compliant, has full support for foreign keys, joins, views, triggers, and
741 stored procedures (in multiple languages). It includes most SQL:2008 data
742 types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and
743 TIMESTAMP. It also supports storage of binary large objects, including
744 pictures, sounds, or video.")
745 (license (license:x11-style "file://COPYRIGHT"))))
747 (define-public postgresql-9.6
754 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
755 version "/postgresql-" version ".tar.bz2"))
758 "0w7bwf19wbdd3jjbjv03cnx56qka4801srcbsayk9v792awv7zga"))))))
767 (uri (string-append "http://fallabs.com/" name "/"
768 name "-" version ".tar.gz"))
771 "0gmpvhn02pkq280ffmn4da1g4mdr1xxz7l80b7y4n7km1mrzwrml"))))
772 (build-system gnu-build-system)
774 `( #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
775 (assoc-ref %outputs "out")
777 (home-page "http://fallabs.com/qdbm")
778 (synopsis "Key-value database")
779 (description "QDBM is a library of routines for managing a
780 database. The database is a simple data file containing key-value
781 pairs. Every key and value is serial bytes with variable length.
782 Binary data as well as character strings can be used as a key or a
783 value. There is no concept of data tables or data types. Records are
784 organized in a hash table or B+ tree.")
785 (license license:lgpl2.1+)))
787 (define-public recutils
793 (uri (string-append "mirror://gnu/recutils/recutils-"
797 "0cdwa4094x3yx7vn98xykvnlp9rngvd58d19vs3vh5hrvggccg93"))))
798 (build-system gnu-build-system)
800 ;; Running tests in parallel leads to test failures and crashes in
802 (arguments '(#:parallel-tests? #f
804 (list (string-append "--with-bash-headers="
805 (assoc-ref %build-inputs "bash:include")
808 #:phases (modify-phases %standard-phases
809 (add-before 'build 'set-bash4.4-header-location
811 (substitute* "bash/Makefile.in"
812 ;; Adjust the header search path for Bash
813 ;; 4.4 in accordance with 'bash.pc'.
814 (("AM_CPPFLAGS = (.*)$" _ rest)
815 (string-append "AM_CPPFLAGS = "
816 "-I$(BASH_HEADERS)/include "
819 ;; Install to PREFIX/lib/bash to match Bash
820 ;; 4.4's search path.
822 "libdir = @libdir@/bash\n"))
825 (native-inputs `(("emacs" ,emacs-minimal)
827 ("bash:include" ,bash "include")
828 ("libuuid" ,util-linux)))
830 ;; TODO: Add more optional inputs.
831 (inputs `(("curl" ,curl)
832 ("libgcrypt" ,libgcrypt)
834 (synopsis "Manipulate plain text files as databases")
836 "GNU Recutils is a set of tools and libraries for creating and
837 manipulating text-based, human-editable databases. Despite being text-based,
838 databases created with Recutils carry all of the expected features such as
839 unique fields, primary keys, time stamps and more. Many different field
840 types are supported, as is encryption.")
841 (license license:gpl3+)
842 (home-page "https://www.gnu.org/software/recutils/")))
844 (define-public rocksdb
850 (uri (string-append "https://github.com/facebook/rocksdb"
851 "/archive/v" version ".tar.gz"))
852 (file-name (string-append name "-" version ".tar.gz"))
855 "0hp7jxr99vyc57n708hiqk4lks9a9zmjgfjc21mx6v1rmabj2944"))
856 (modules '((guix build utils)))
859 ;; TODO: unbundle gtest.
860 (delete-file "build_tools/gnu_parallel")
861 (substitute* "Makefile"
862 (("build_tools/gnu_parallel") "parallel"))
864 (build-system gnu-build-system)
866 `(#:make-flags (list "CC=gcc" "V=1"
867 ;; Ceph requires that RTTI is enabled.
869 (string-append "INSTALL_PATH="
870 (assoc-ref %outputs "out"))
872 ;; Running the full test suite takes hours and require
873 ;; a lot of disk space. Instead we only run a subset
874 ;; (see .travis.yml and Makefile).
875 "ROCKSDBTESTS_END=db_tailing_iter_test")
876 #:test-target "check_some"
877 ;; Many tests fail on 32-bit platforms. There are multiple reports about
878 ;; this upstream, but it's not going to be supported any time soon.
879 #:tests? (let ((system ,(or (%current-target-system)
881 (or (string-prefix? "x86_64-linux" system)
882 (string-prefix? "aarch64-linux" system)))
884 (modify-phases %standard-phases
885 (add-after 'unpack 'patch-Makefile
887 (substitute* "Makefile"
888 ;; Don't depend on the static library when installing.
889 (("install: install-static")
890 "install: install-shared")
891 (("#!/bin/sh") (string-append "#!" (which "sh"))))
894 ;; The default target is only needed for tests and built on demand.
896 (add-before 'check 'disable-optimizations
898 ;; Prevent the build from passing '-march=native' to the compiler.
899 (setenv "PORTABLE" "1")
901 (add-before 'check 'disable-failing-tests
903 (substitute* "Makefile"
904 ;; These tests reliably fail due to "Too many open files".
905 (("^[[:blank:]]+env_test[[:blank:]]+\\\\") "\\")
906 (("^[[:blank:]]+persistent_cache_test[[:blank:]]+\\\\") "\\"))
908 (add-after 'check 'build
909 ;; The default build target is a debug build for tests. The
910 ;; install target depends on the "shared_lib" release target
911 ;; so we build it here for clarity.
912 (lambda* (#:key (make-flags '()) parallel-build? #:allow-other-keys)
913 (apply invoke "make" "shared_lib"
914 `(,@(if parallel-build?
915 `("-j" ,(number->string (parallel-job-count)))
919 `(("parallel" ,parallel)
927 ("jemalloc" ,jemalloc)
931 (home-page "http://rocksdb.org/")
932 (synopsis "Persistent key-value store for fast storage")
934 "RocksDB is a library that forms the core building block for a fast
935 key-value server, especially suited for storing data on flash drives. It
936 has a @dfn{Log-Structured-Merge-Database} (LSM) design with flexible tradeoffs
937 between @dfn{Write-Amplification-Factor} (WAF), @dfn{Read-Amplification-Factor}
938 (RAF) and @dfn{Space-Amplification-Factor} (SAF). It has multi-threaded
939 compactions, making it specially suitable for storing multiple terabytes of
940 data in a single database. RocksDB is partially based on @code{LevelDB}.")
941 ;; RocksDB is dual licensed under GPL2 and ASL 2.0. Some header
942 ;; files carry the 3-clause BSD license.
943 (license (list license:gpl2 license:asl2.0 license:bsd-3))))
945 (define-public sparql-query
947 (name "sparql-query")
951 (uri (string-append "https://github.com/tialaramex/"
952 name "/archive/" version ".tar.gz"))
954 (base32 "0yq3k20472rv8npcc420q9ab6idy584g5y0q501d360k5q0ggr8w"))
955 (file-name (string-append name "-" version ".tar.gz"))))
956 (build-system gnu-build-system)
958 `(("readline" ,readline)
964 `(("pkg-config" ,pkg-config)))
966 `(#:make-flags '("CC=gcc")
968 (modify-phases %standard-phases
970 ;; The Makefile uses git to obtain versioning information. This phase
971 ;; substitutes the git invocation with the package version.
972 (add-after 'unpack 'remove-git-dependency
974 (substitute* "Makefile"
976 (string-append "gitrev = \"v" ,version "\"")))))
977 ;; The install phase of the Makefile assumes $PREFIX/usr/local/bin.
978 ;; This replacement does the same thing, except for using $PREFIX/bin
981 (lambda* (#:key outputs #:allow-other-keys)
982 (let* ((out (assoc-ref outputs "out"))
983 (bin (string-append out "/bin")))
984 (install-file "sparql-query" bin)
985 (system* "ln" "--symbolic"
986 (string-append bin "/sparql-query")
987 (string-append bin "/sparql-update")))))
989 (lambda* (#:key make-flags #:allow-other-keys)
991 (zero? (apply system* "make" `(,@make-flags "scan-test")))
992 (zero? (system "./scan-test"))))))))
993 (home-page "https://github.com/tialaramex/sparql-query/")
994 (synopsis "Command-line tool for accessing SPARQL endpoints over HTTP")
995 (description "Sparql-query is a command-line tool for accessing SPARQL
996 endpoints over HTTP. It has been intentionally designed to 'feel' similar to
997 tools for interrogating SQL databases. For example, you can enter a query over
998 several lines, using a semi-colon at the end of a line to indicate the end of
999 your query. It also supports readline so that you can more easily recall and
1000 edit previous queries, even across sessions. It can be used non-interactively,
1001 for example from a shell script.")
1002 ;; Some files (like scan-sparql.c) contain a GPLv3+ license header, while
1003 ;; others (like sparql-query.c) contain a GPLv2+ license header.
1004 (license (list license:gpl3+))))
1006 (define-public sqlite
1012 (uri (let ((numeric-version
1013 (match (string-split version #\.)
1014 ((first-digit other-digits ...)
1015 (string-append first-digit
1018 (map (cut string-pad <> 2 #\0)
1021 (string-append "https://sqlite.org/2017/sqlite-autoconf-"
1022 numeric-version ".tar.gz")))
1025 "1qxvzdjwzw6k0kqjfabj86rnq87xdbwbca7laxxdhnh0fmkm3pfp"))))
1026 (build-system gnu-build-system)
1027 (inputs `(("readline" ,readline)))
1030 ;; Add -DSQLITE_SECURE_DELETE, -DSQLITE_ENABLE_UNLOCK_NOTIFY and
1031 ;; -DSQLITE_ENABLE_DBSTAT_VTAB to CFLAGS. GNU Icecat will refuse
1032 ;; to use the system SQLite unless these options are enabled.
1033 (list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
1034 "-DSQLITE_ENABLE_UNLOCK_NOTIFY "
1035 "-DSQLITE_ENABLE_DBSTAT_VTAB"))))
1036 (home-page "https://www.sqlite.org/")
1037 (synopsis "The SQLite database management system")
1039 "SQLite is a software library that implements a self-contained, serverless,
1040 zero-configuration, transactional SQL database engine. SQLite is the most
1041 widely deployed SQL database engine in the world. The source code for SQLite
1042 is in the public domain.")
1043 (license license:public-domain)))
1045 ;; This is used by Tracker.
1046 (define-public sqlite-with-fts5
1047 (package (inherit sqlite)
1048 (name "sqlite-with-fts5")
1050 (substitute-keyword-arguments (package-arguments sqlite)
1051 ((#:configure-flags flags)
1052 `(cons "--enable-fts5" ,flags))))))
1054 ;; This is used by Clementine.
1055 (define-public sqlite-with-fts3
1056 (package (inherit sqlite)
1057 (name "sqlite-with-fts3")
1059 (substitute-keyword-arguments (package-arguments sqlite)
1060 ((#:configure-flags flags)
1061 `(list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
1062 "-DSQLITE_ENABLE_UNLOCK_NOTIFY "
1063 "-DSQLITE_ENABLE_DBSTAT_VTAB "
1064 "-DSQLITE_ENABLE_FTS3 "
1065 "-DSQLITE_ENABLE_FTS3_PARENTHESIS "
1066 "-DSQLITE_ENABLE_FTS3_TOKENIZER")))))))
1074 (uri (string-append "https://www.samba.org/ftp/tdb/tdb-"
1078 "0a37jhpij8wr4f4pjqdlwnffy2l6a2vkqdpz1bqxj6v06cwbz8dl"))))
1079 (build-system gnu-build-system)
1082 (modify-phases %standard-phases
1084 (lambda* (#:key outputs #:allow-other-keys)
1085 (let ((out (assoc-ref outputs "out")))
1086 ;; The 'configure' script is a wrapper for Waf and
1087 ;; doesn't recognize things like '--enable-fast-install'.
1088 (zero? (system* "./configure"
1089 (string-append "--prefix=" out)))))))))
1091 `(;; TODO: Build the documentation.
1092 ;; ("docbook-xsl" ,docbook-xsl)
1093 ;; ("libxml2" ,libxml2)
1094 ;; ("libxslt" ,libxslt)
1095 ("python" ,python-2))) ;for the Waf build system
1096 (home-page "https://tdb.samba.org/")
1097 (synopsis "Trivial database")
1099 "TDB is a Trivial Database. In concept, it is very much like GDBM,
1100 and BSD's DB except that it allows multiple simultaneous writers and uses
1101 locking internally to keep writers from trampling on each other. TDB is also
1103 (license license:lgpl3+)))
1105 (define-public perl-dbi
1112 "mirror://cpan/authors/id/T/TI/TIMB/DBI-"
1116 "1ikbsb6sb0bd2m1dqknl4vx7ikmnd41y0xq8np1l40g8jcjp2mr5"))))
1117 (build-system perl-build-system)
1118 (synopsis "Database independent interface for Perl")
1119 (description "This package provides an database interface for Perl.")
1120 (home-page "http://search.cpan.org/dist/DBI")
1121 (license license:perl-license)))
1123 (define-public perl-dbix-class
1125 (name "perl-dbix-class")
1126 (version "0.082840")
1130 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
1131 "DBIx-Class-" version ".tar.gz"))
1134 "1vw1f756g8m5hq11nqf5dk2cw2y4mqq91ca5p75fn5g3fp8syja0"))))
1135 (build-system perl-build-system)
1137 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
1138 ("perl-file-temp" ,perl-file-temp)
1139 ("perl-module-install" ,perl-module-install)
1140 ("perl-package-stash" ,perl-package-stash)
1141 ("perl-test-deep" ,perl-test-deep)
1142 ("perl-test-exception" ,perl-test-exception)
1143 ("perl-test-warn" ,perl-test-warn)))
1145 `(("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1146 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1147 ("perl-class-inspector" ,perl-class-inspector)
1148 ("perl-config-any" ,perl-config-any)
1149 ("perl-context-preserve" ,perl-context-preserve)
1150 ("perl-data-dumper-concise" ,perl-data-dumper-concise)
1151 ("perl-data-page" ,perl-data-page)
1152 ("perl-dbi" ,perl-dbi)
1153 ("perl-devel-globaldestruction" ,perl-devel-globaldestruction)
1154 ("perl-hash-merge" ,perl-hash-merge)
1155 ("perl-module-find" ,perl-module-find)
1156 ("perl-moo" ,perl-moo)
1157 ("perl-mro-compat" ,perl-mro-compat)
1158 ("perl-namespace-clean" ,perl-namespace-clean)
1159 ("perl-path-class" ,perl-path-class)
1160 ("perl-scalar-list-utils" ,perl-scalar-list-utils)
1161 ("perl-scope-guard" ,perl-scope-guard)
1162 ("perl-sql-abstract" ,perl-sql-abstract)
1163 ("perl-sub-name" ,perl-sub-name)
1164 ("perl-text-balanced" ,perl-text-balanced)
1165 ("perl-try-tiny" ,perl-try-tiny)))
1166 (home-page "http://search.cpan.org/dist/DBIx-Class")
1167 (synopsis "Extensible and flexible object <-> relational mapper")
1168 (description "An SQL to OO mapper with an object API inspired by
1169 Class::DBI (with a compatibility layer as a springboard for porting) and a
1170 resultset API that allows abstract encapsulation of database operations. It
1171 aims to make representing queries in your code as perl-ish as possible while
1172 still providing access to as many of the capabilities of the database as
1173 possible, including retrieving related records from multiple tables in a
1174 single query, \"JOIN\", \"LEFT JOIN\", \"COUNT\", \"DISTINCT\", \"GROUP BY\",
1175 \"ORDER BY\" and \"HAVING\" support.")
1176 (license license:perl-license)))
1178 (define-public perl-dbix-class-cursor-cached
1180 (name "perl-dbix-class-cursor-cached")
1181 (version "1.001004")
1185 (uri (string-append "mirror://cpan/authors/id/A/AR/ARCANEZ/"
1186 "DBIx-Class-Cursor-Cached-" version ".tar.gz"))
1189 "09b2jahn2x12qm4f7qm1jzsxbz7qn1czp6a3fnl5l2i3l4r5421p"))))
1190 (build-system perl-build-system)
1192 `(("perl-cache-cache" ,perl-cache-cache)
1193 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1194 ("perl-module-install" ,perl-module-install)))
1196 `(("perl-carp-clan" ,perl-carp-clan)
1197 ("perl-dbix-class" ,perl-dbix-class)))
1198 (home-page "http://search.cpan.org/dist/DBIx-Class-Cursor-Cached")
1199 (synopsis "Cursor with built-in caching support")
1200 (description "DBIx::Class::Cursor::Cached provides a cursor class with
1201 built-in caching support.")
1202 (license license:perl-license)))
1204 (define-public perl-dbix-class-introspectablem2m
1206 (name "perl-dbix-class-introspectablem2m")
1207 (version "0.001002")
1211 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1212 "DBIx-Class-IntrospectableM2M-" version ".tar.gz"))
1215 "1w47rh2241iy5x3a9bqsyd5kdp9sk43dksr99frzv4qn4jsazfn6"))))
1216 (build-system perl-build-system)
1218 `(("perl-module-install" ,perl-module-install)))
1220 `(("perl-dbix-class" ,perl-dbix-class)))
1221 (home-page "http://search.cpan.org/dist/DBIx-Class-IntrospectableM2M")
1222 (synopsis "Introspect many-to-many relationships")
1223 (description "Because the many-to-many relationships are not real
1224 relationships, they can not be introspected with DBIx::Class. Many-to-many
1225 relationships are actually just a collection of convenience methods installed
1226 to bridge two relationships. This DBIx::Class component can be used to store
1227 all relevant information about these non-relationships so they can later be
1228 introspected and examined.")
1229 (license license:perl-license)))
1231 (define-public perl-dbix-class-schema-loader
1233 (name "perl-dbix-class-schema-loader")
1238 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1239 "DBIx-Class-Schema-Loader-" version ".tar.gz"))
1242 "06s2q6xj95600sdlfph57spjk2z1gjs4zwq5b7mz7d5izcxgnwb6"))))
1243 (build-system perl-build-system)
1245 `(("perl-config-any" ,perl-config-any)
1246 ("perl-config-general" ,perl-config-general)
1247 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1248 ("perl-dbix-class-introspectablem2m" ,perl-dbix-class-introspectablem2m)
1249 ("perl-module-install" ,perl-module-install)
1250 ("perl-moose" ,perl-moose)
1251 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
1252 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
1253 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
1254 ("perl-test-deep" ,perl-test-deep)
1255 ("perl-test-differences" ,perl-test-differences)
1256 ("perl-test-exception" ,perl-test-exception)
1257 ("perl-test-pod" ,perl-test-pod)
1258 ("perl-test-warn" ,perl-test-warn)))
1260 `(("perl-class-unload" ,perl-class-unload)
1261 ("perl-class-inspector" ,perl-class-inspector)
1262 ("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
1263 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
1264 ("perl-carp-clan" ,perl-carp-clan)
1265 ("perl-data-dump" ,perl-data-dump)
1266 ("perl-dbix-class" ,perl-dbix-class)
1267 ("perl-hash-merge" ,perl-hash-merge)
1268 ("perl-list-moreutils" ,perl-list-moreutils)
1269 ("perl-lingua-en-inflect-phrase" ,perl-lingua-en-inflect-phrase)
1270 ("perl-lingua-en-inflect-number" ,perl-lingua-en-inflect-number)
1271 ("perl-lingua-en-tagger" ,perl-lingua-en-tagger)
1272 ("perl-namespace-clean" ,perl-namespace-clean)
1273 ("perl-mro-compat" ,perl-mro-compat)
1274 ("perl-scope-guard" ,perl-scope-guard)
1275 ("perl-string-camelcase" ,perl-string-camelcase)
1276 ("perl-string-toidentifier-en" ,perl-string-toidentifier-en)
1277 ("perl-sub-name" ,perl-sub-name)
1278 ("perl-try-tiny" ,perl-try-tiny)))
1279 (arguments `(#:tests? #f)) ;TODO: t/20invocations.t fails
1280 (home-page "http://search.cpan.org/dist/DBIx-Class-Schema-Loader")
1281 (synopsis "Create a DBIx::Class::Schema based on a database")
1282 (description "DBIx::Class::Schema::Loader automates the definition of a
1283 DBIx::Class::Schema by scanning database table definitions and setting up the
1284 columns, primary keys, unique constraints and relationships.")
1285 (license license:perl-license)))
1287 (define-public perl-dbd-pg
1289 (name "perl-dbd-pg")
1294 (uri (string-append "mirror://cpan/authors/id/T/TU/TURNSTEP/"
1295 "DBD-Pg-" version ".tar.gz"))
1298 "0gkqlvbmzbdm0g4k328nlkjdg3wrjm5i2n9jxj1i8sqxkm79rylz"))))
1299 (build-system perl-build-system)
1301 `(("perl-dbi" ,perl-dbi)))
1303 `(("perl-dbi" ,perl-dbi)
1304 ("postgresql" ,postgresql)))
1305 (home-page "http://search.cpan.org/dist/DBD-Pg")
1306 (synopsis "DBI PostgreSQL interface")
1307 (description "This package provides a PostgreSQL driver for the Perl5
1308 @dfn{Database Interface} (DBI).")
1309 (license license:perl-license)))
1311 (define-public perl-dbd-mysql
1313 (name "perl-dbd-mysql")
1318 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1319 "DBD-mysql-" version ".tar.gz"))
1322 "16bg7l28n65ngi1abjxvwk906a80i2vd5vzjn812dx8phdg8d7v2"))
1323 (patches (search-patches "perl-dbd-mysql-CVE-2017-10788.patch"))))
1324 (build-system perl-build-system)
1325 ;; Tests require running MySQL server
1326 (arguments `(#:tests? #f))
1328 `(("perl-dbi" ,perl-dbi)
1330 (home-page "http://search.cpan.org/dist/DBD-mysql")
1331 (synopsis "DBI MySQL interface")
1332 (description "This package provides a MySQL driver for the Perl5
1333 @dfn{Database Interface} (DBI).")
1334 (license license:perl-license)))
1336 (define-public perl-dbd-sqlite
1338 (name "perl-dbd-sqlite")
1343 "mirror://cpan/authors/id/I/IS/ISHIGAKI/DBD-SQLite-"
1347 "0sbj9lx9syzpknvjv8cz9jndg32qz775vy2prgq305npv3dsca9r"))))
1348 (build-system perl-build-system)
1349 (inputs `(("sqlite" ,sqlite)))
1350 (propagated-inputs `(("perl-dbi" ,perl-dbi)))
1351 (synopsis "SQlite interface for Perl")
1352 (description "DBD::SQLite is a Perl DBI driver for SQLite, that includes
1353 the entire thing in the distribution. So in order to get a fast transaction
1354 capable RDBMS working for your Perl project you simply have to install this
1355 module, and nothing else.")
1356 (license license:perl-license)
1357 (home-page "http://search.cpan.org/~ishigaki/DBD-SQLite/lib/DBD/SQLite.pm")))
1359 (define-public perl-sql-abstract
1361 (name "perl-sql-abstract")
1366 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1367 "SQL-Abstract-" version ".tar.gz"))
1370 "1aycggrvppy2zgkwwn85jkdz93n5gsx4dambrjk67k5067hayi4z"))))
1371 (build-system perl-build-system)
1373 `(("perl-module-install" ,perl-module-install)
1374 ("perl-test-deep" ,perl-test-deep)
1375 ("perl-test-exception" ,perl-test-exception)
1376 ("perl-test-warn" ,perl-test-warn)))
1378 `(("perl-hash-merge" ,perl-hash-merge)
1379 ("perl-moo" ,perl-moo)
1380 ("perl-mro-compat" ,perl-mro-compat)
1381 ("perl-text-balanced" ,perl-text-balanced)))
1382 (home-page "http://search.cpan.org/dist/SQL-Abstract")
1383 (synopsis "Generate SQL from Perl data structures")
1384 (description "This module was inspired by the excellent DBIx::Abstract.
1385 While based on the concepts used by DBIx::Abstract, the concepts used have
1386 been modified to make the SQL easier to generate from Perl data structures.
1387 The underlying idea is for this module to do what you mean, based on the data
1388 structures you provide it, so that you don't have to modify your code every
1389 time your data changes.")
1390 (license license:perl-license)))
1392 (define-public perl-sql-splitstatement
1394 (name "perl-sql-splitstatement")
1399 (uri (string-append "mirror://cpan/authors/id/E/EM/EMAZEP/"
1400 "SQL-SplitStatement-" version ".tar.gz"))
1403 "0bqg45k4c9qkb2ypynlwhpvzsl4ssfagmsalys18s5c79ps30z7p"))))
1404 (build-system perl-build-system)
1406 `(("perl-test-exception" ,perl-test-exception)))
1408 `(("perl-class-accessor" ,perl-class-accessor)
1409 ("perl-list-moreutils" ,perl-list-moreutils)
1410 ("perl-regexp-common" ,perl-regexp-common)
1411 ("perl-sql-tokenizer" ,perl-sql-tokenizer)))
1412 (home-page "http://search.cpan.org/dist/SQL-SplitStatement")
1413 (synopsis "Split SQL code into atomic statements")
1414 (description "This module tries to split any SQL code, even including
1415 non-standard extensions, into the atomic statements it is composed of.")
1416 (license license:perl-license)))
1418 (define-public perl-sql-tokenizer
1420 (name "perl-sql-tokenizer")
1425 (uri (string-append "mirror://cpan/authors/id/I/IZ/IZUT/"
1426 "SQL-Tokenizer-" version ".tar.gz"))
1429 "1qa2dfbzdlr5qqdam9yn78z5w3al5r8577x06qan8wv58ay6ka7s"))))
1430 (build-system perl-build-system)
1431 (home-page "http://search.cpan.org/dist/SQL-Tokenizer")
1432 (synopsis "SQL tokenizer")
1433 (description "SQL::Tokenizer is a tokenizer for SQL queries. It does not
1434 claim to be a parser or query verifier. It just creates sane tokens from a
1436 (license license:perl-license)))
1438 (define-public unixodbc
1446 "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-"
1449 (base32 "0f8y88rcc2akjvjv5y66yx7k0ms9h1s0vbcfy25j93didflhj59f"))))
1450 (build-system gnu-build-system)
1451 (synopsis "Data source abstraction library")
1452 (description "Unixodbc is a library providing an API with which to access
1453 data sources. Data sources include SQL Servers and any software with an ODBC
1455 (license license:lgpl2.1+)
1456 ;; COPYING contains copy of lgpl2.1 - but copyright notices just say "LGPL"
1457 (home-page "http://www.unixodbc.org")))
1459 (define-public unqlite
1465 ;; Contains bug fixes against the official release, and has an
1466 ;; autotooled build system.
1467 (uri (string-append "https://github.com/aidin36/tocc/releases/"
1469 "unqlite-unofficial-" version ".tar.gz"))
1472 "1sbpvhg15gadq0mpcy16q7k3rkg4b4dicpnn5xifpkpn02sqik3s"))))
1473 (build-system gnu-build-system)
1474 (arguments `(#:tests? #f)) ;No check target
1475 (home-page "http://www.unqlite.org")
1476 (synopsis "In-memory key/value and document store")
1478 "UnQLite is an in-process software library which implements a
1479 self-contained, serverless, zero-configuration, transactional NoSQL
1480 database engine. UnQLite is a document store database similar to
1481 MongoDB, Redis, CouchDB, etc. as well as a standard Key/Value store
1482 similar to BerkeleyDB, LevelDB, etc.")
1483 (license license:bsd-2)))
1485 (define-public redis
1491 (uri (string-append "http://download.redis.io/releases/redis-"
1495 "04s8cgvwjj1979s3hg8zkwc9pyn3jkjpz5zidp87kfcipifr385i"))))
1496 (build-system gnu-build-system)
1498 '(#:tests? #f ; tests related to master/slave and replication fail
1499 #:phases (modify-phases %standard-phases
1500 (delete 'configure))
1501 #:make-flags `("CC=gcc"
1504 ,(string-append "PREFIX="
1505 (assoc-ref %outputs "out")))))
1506 (synopsis "Key-value cache and store")
1507 (description "Redis is an advanced key-value cache and store. Redis
1508 supports many data structures including strings, hashes, lists, sets, sorted
1509 sets, bitmaps and hyperloglogs.")
1510 (home-page "http://redis.io/")
1511 (license license:bsd-3)))
1513 (define-public kyotocabinet
1515 (name "kyotocabinet")
1519 (uri (string-append "http://fallabs.com/kyotocabinet/pkg/"
1520 name "-" version ".tar.gz"))
1523 "0g6js20x7vnpq4p8ghbw3mh9wpqksya9vwhzdx6dnlf354zjsal1"))))
1524 (build-system gnu-build-system)
1528 "--disable-opt" ;"-march=native". XXX this also turns off -O0.
1529 (string-append "LDFLAGS=-Wl,-rpath="
1530 (assoc-ref %outputs "out") "/lib"))))
1531 (inputs `(("zlib" ,zlib)))
1532 (home-page "http://fallabs.com/kyotocabinet/")
1534 "Kyoto Cabinet is a modern implementation of the DBM database")
1536 "Kyoto Cabinet is a standalone file-based database that supports Hash
1537 and B+ Tree data storage models. It is a fast key-value lightweight
1538 database and supports many programming languages. It is a NoSQL database.")
1539 (license license:gpl3+)))
1541 (define-public tokyocabinet
1543 (name "tokyocabinet")
1548 (uri (string-append "http://fallabs.com/tokyocabinet/"
1549 name "-" version ".tar.gz"))
1552 "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0"))))
1553 (build-system gnu-build-system)
1556 (list "--enable-pthread" "--enable-off64" "--enable-fastest"
1557 (string-append "LDFLAGS=-Wl,-rpath="
1558 (assoc-ref %outputs "out") "/lib"))))
1561 (home-page "http://fallabs.com/tokyocabinet/")
1562 (synopsis "Tokyo Cabinet is a modern implementation of the DBM database")
1564 "Tokyo Cabinet is a library of routines for managing a database.
1565 The database is a simple data file containing records, each is a pair of a
1566 key and a value. Every key and value is serial bytes with variable length.
1567 Both binary data and character string can be used as a key and a value.
1568 There is neither concept of data tables nor data types. Records are
1569 organized in hash table, B+ tree, or fixed-length array.")
1570 (license license:lgpl2.1+)))
1572 (define-public wiredtiger
1579 "http://source.wiredtiger.com/releases/wiredtiger-"
1580 version ".tar.bz2"))
1583 "0krwnb2zfbhvjaskwl875qzd3y626s84zcciq2mxr5c5riw3yh6s"))))
1584 (build-system gnu-build-system)
1586 '(#:configure-flags '("--enable-lz4" "--with-builtins=snappy,zlib")
1588 (modify-phases %standard-phases
1589 (add-before 'check 'disable-test/fops
1591 ;; XXX: timed out after 3600 seconds of silence
1592 (substitute* "Makefile"
1598 ("snappy" ,snappy)))
1599 (home-page "http://source.wiredtiger.com/")
1600 (synopsis "NoSQL data engine")
1602 "WiredTiger is an extensible platform for data management. It supports
1603 row-oriented storage (where all columns of a row are stored together),
1604 column-oriented storage (where columns are stored in groups, allowing for
1605 more efficient access and storage of column subsets) and log-structured merge
1606 trees (LSM), for sustained throughput under random insert workloads.")
1607 (license license:gpl3) ; or GPL-2
1608 ;; configure.ac: WiredTiger requires a 64-bit build.
1609 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))))
1611 (define-public guile-wiredtiger
1613 (name "guile-wiredtiger")
1618 (url "https://framagit.org/a-guile-mind/guile-wiredtiger.git")
1619 (commit "070ed68139d99c279f058a6c293f00292d35dbd7")))
1620 (file-name (string-append name "-" version "-checkout"))
1623 "14rna97wsylajzxfif95wnblq85csgcfc666gh5dl0ssgd7x8llh"))))
1624 (build-system gnu-build-system)
1626 '(#:parallel-tests? #f ;; tests can't be run in parallel, yet.
1628 (list (string-append "--with-libwiredtiger-prefix="
1629 (assoc-ref %build-inputs "wiredtiger")))
1630 #:make-flags '("GUILE_AUTO_COMPILE=0")
1632 (modify-phases %standard-phases
1633 (add-after 'unpack 'bootstrap
1635 (invoke "sh" "bootstrap"))))))
1636 ;; TODO: Remove microkanren.scm when we have a separate package
1639 `(("autoconf" ,autoconf)
1640 ("automake" ,automake)
1641 ("pkg-config" ,pkg-config)))
1643 `(("wiredtiger" ,wiredtiger)
1644 ("guile" ,guile-2.2)))
1646 `(("guile-lib" ,guile-lib))) ;for (htmlprag)
1647 (synopsis "WiredTiger bindings for GNU Guile")
1649 "This package provides Guile bindings to the WiredTiger ``NoSQL''
1650 database. Various higher level database abstractions.")
1651 (home-page "https://framagit.org/a-guile-mind/guile-wiredtiger")
1652 (license license:gpl3+)))
1654 (define-public perl-db-file
1656 (name "perl-db-file")
1662 "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
1667 "1i5jz85z4hpx15lw6ix27pyvrf0ziyh4z33lii4d3wnhz83lg1mp"))))
1668 (build-system perl-build-system)
1669 (inputs `(("bdb" ,bdb)))
1670 (native-inputs `(("perl-test-pod" ,perl-test-pod)))
1672 `(#:phases (modify-phases %standard-phases
1674 'configure 'modify-config.in
1675 (lambda* (#:key inputs #:allow-other-keys)
1676 (substitute* "config.in"
1677 (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
1679 (home-page "http://search.cpan.org/dist/DB_File")
1681 "Perl5 access to Berkeley DB version 1.x")
1683 "The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
1684 (license license:perl-license)))
1692 (uri (string-append "https://github.com/LMDB/lmdb/archive/"
1693 "LMDB_" version ".tar.gz"))
1696 "0ndmj07hkm2ic60z1f4rdscxs7pq45hk9fibjyv5nhfclhsvd1qi"))))
1697 (build-system gnu-build-system)
1699 `(#:test-target "test"
1701 (modify-phases %standard-phases
1703 (lambda* (#:key outputs #:allow-other-keys)
1704 (chdir (string-append
1705 (getenv "PWD") "/lmdb-LMDB_" ,version "/libraries/liblmdb"))
1706 (substitute* "Makefile"
1707 (("/usr/local") (assoc-ref outputs "out")))
1709 (home-page "https://symas.com/products/lightning-memory-mapped-database")
1710 (synopsis "Lightning Memory-Mapped Database library")
1712 "The @dfn{Lightning Memory-Mapped Database} (LMDB) is a high-performance
1713 transactional database. Unlike more complex relational databases, LMDB handles
1714 only key-value pairs (stored as arbitrary byte arrays) and relies on the
1715 underlying operating system for caching and locking, keeping the code small and
1717 The use of ‘zero-copy’ memory-mapped files combines the persistence of classic
1718 disk-based databases with high read performance that scales linearly over
1719 multiple cores. The size of each database is limited only by the size of the
1720 virtual address space — not physical RAM.")
1721 (license license:openldap2.8)))
1723 (define-public libpqxx
1730 "http://pqxx.org/download/software/libpqxx/"
1731 name "-" version ".tar.gz"))
1734 "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09"))))
1735 (build-system gnu-build-system)
1737 `(("python" ,python-2)))
1738 (inputs `(("postgresql" ,postgresql)))
1740 `(#:tests? #f ; # FAIL: 1
1742 (modify-phases %standard-phases
1743 (add-before 'configure 'fix-sed-command
1745 ;; Newer sed versions error out if double brackets are not used.
1746 (substitute* "configure"
1747 (("\\[:space:\\]") "[[:space:]]"))
1749 (synopsis "C++ connector for PostgreSQL")
1751 "Libpqxx is a C++ library to enable user programs to communicate with the
1752 PostgreSQL database back-end. The database back-end can be local or it may be
1753 on another machine, accessed via TCP/IP.")
1754 (home-page "http://pqxx.org/")
1755 (license license:bsd-3)))
1757 (define-public python-peewee
1759 (name "python-peewee")
1764 (uri (pypi-uri "peewee" version))
1767 "10f2mrd5hw6rjklrzaix2lsxlgc8vx3xak54arcy6yd791zhchi3"))))
1768 (build-system python-build-system)
1770 `(#:tests? #f)) ; Fails to import test data
1772 `(("python-cython" ,python-cython)))
1773 (home-page "https://github.com/coleifer/peewee/")
1774 (synopsis "Small object-relational mapping utility")
1776 "Peewee is a simple and small ORM (object-relation mapping) tool. Peewee
1777 handles converting between pythonic values and those used by databases, so you
1778 can use Python types in your code without having to worry. It has built-in
1779 support for sqlite, mysql and postgresql. If you already have a database, you
1780 can autogenerate peewee models using @code{pwiz}, a model generator.")
1781 (license license:expat)))
1783 (define-public python2-peewee
1784 (package-with-python2 python-peewee))
1786 (define-public sqlcipher
1793 (uri (string-append "https://github.com/sqlcipher/" name
1794 "/archive/v" version ".tar.gz"))
1796 (base32 "1gv58dlbpzrmznly52yqbxgvii0ib88zr3aszla1bsypwjr6flff"))
1797 (file-name (string-append name "-" version ".tar.gz"))))
1798 (build-system gnu-build-system)
1800 `(("libcrypto" ,openssl)
1801 ("libtcl8.6" ,tcl))) ; required for running the tests
1806 '("--enable-tempstore=yes"
1807 "CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_ENABLE_FTS3"
1808 "LDFLAGS=-lcrypto -ltcl8.6"
1810 ;; tests cannot be run from the Makefile
1811 ;; see: <https://github.com/sqlcipher/sqlcipher/issues/172>
1812 #:test-target "testfixture"
1814 (modify-phases %standard-phases
1815 (add-before 'check 'build-test-runner
1816 (assoc-ref %standard-phases 'check))
1820 (system* "./testfixture" "test/crypto.test")))))))
1821 (home-page "https://www.zetetic.net/sqlcipher/")
1823 "Library providing transparent encryption of SQLite database files")
1824 (description "SQLCipher is an implementation of SQLite, extended to
1825 provide transparent 256-bit AES encryption of database files. Pages are
1826 encrypted before being written to disk and are decrypted when read back. It’s
1827 well suited for protecting embedded application databases and for mobile
1830 ;; src/{crypto.c,crypto_impl.c,crypto.h,crypto_cc.c,crypto_libtomcrypt.c},
1831 ;; src/{crypto_openssl.c,sqlcipher.h}, tool/crypto-speedtest.tcl,
1832 ;; test/crypto.test are licensed under a 3-clause BSD license. All other
1833 ;; source files are in the public domain.
1834 (license (list license:public-domain license:bsd-3))))
1836 (define-public python-pyodbc-c
1838 (name "python-pyodbc-c")
1843 (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
1844 "archive.tar.gz?ref=v" version))
1847 "05aq2297k779xidmxcwkrrxjvj1bh2q7d9a1rcjv6zr15y764ga9"))
1848 (file-name (string-append name "-" version ".tar.gz"))))
1849 (build-system python-build-system)
1851 `(("unixodbc" ,unixodbc)))
1853 `(;; No unit tests exist.
1855 (home-page "https://github.com/mkleehammer/pyodbc")
1856 (synopsis "Python ODBC Library")
1857 (description "@code{python-pyodbc-c} provides a Python DB-API driver
1859 (license (license:x11-style "file://LICENSE.TXT"))))
1861 (define-public python2-pyodbc-c
1862 (package-with-python2 python-pyodbc-c))
1864 (define-public python-pyodbc
1866 (name "python-pyodbc")
1871 (uri (pypi-uri "pyodbc" version))
1874 "0a83zwz3h1agshnsc6r7al6q83222w8601gpzzzjvjz5m56ghmcn"))
1875 (file-name (string-append name "-" version ".tar.gz"))))
1876 (build-system python-build-system)
1878 `(("unixodbc" ,unixodbc)))
1880 `(;; No unit tests exist.
1882 (home-page "https://github.com/mkleehammer/pyodbc")
1883 (synopsis "Python ODBC Library")
1884 (description "@code{python-pyodbc} provides a Python DB-API driver
1886 (license (license:x11-style "file:///LICENSE.TXT"))))
1888 (define-public python2-pyodbc
1889 (package-with-python2 python-pyodbc))
1891 (define-public mdbtools
1898 (uri (string-append "https://github.com/brianb/mdbtools/archive/"
1902 "05hbmxcq173kzb899gdi3bz2qcc1vi3n1qbbkwpsvrq7ggf11wyw"))
1903 (file-name (string-append name "-" version ".tar.gz"))))
1904 (build-system gnu-build-system)
1908 `(("autoconf" ,autoconf)
1909 ("automake" ,automake)
1910 ("libtool" ,libtool)
1911 ("pkg-config" ,pkg-config)
1912 ("txt2man" ,txt2man)
1916 (modify-phases %standard-phases
1917 (add-after 'unpack 'autoreconf
1919 (zero? (system* "autoreconf" "-vfi")))))))
1920 (home-page "http://mdbtools.sourceforge.net/")
1921 (synopsis "Read Microsoft Access databases")
1922 (description "MDB Tools is a set of tools and applications to read the
1923 proprietary MDB file format used in Microsoft's Access database package. This
1924 includes programs to export schema and data from Microsoft's Access database
1925 file format to other databases such as MySQL, Oracle, Sybase, PostgreSQL,
1926 etc., and an SQL engine for performing simple SQL queries.")
1927 (license (list license:lgpl2.0
1930 (define-public python-lmdb
1932 (name "python-lmdb")
1936 (uri (pypi-uri "lmdb" version))
1939 "0xdpb298fyl68acadbwv5801wcwfpnhc7sm4bnrq1x4bd5dhhsql"))
1940 (modules '((guix build utils)))
1942 ;; Delete bundled lmdb source files.
1943 '(for-each delete-file (list "lib/lmdb.h"
1947 (build-system python-build-system)
1952 (modify-phases %standard-phases
1953 (add-before 'build 'use-system-lmdb
1954 (lambda* (#:key inputs #:allow-other-keys)
1955 (let ((lmdb (assoc-ref inputs "lmdb")))
1956 (setenv "LMDB_FORCE_SYSTEM" "set")
1957 (setenv "LMDB_INCLUDEDIR" (string-append lmdb "/include"))
1958 (setenv "LMDB_LIBDIR" (string-append lmdb "/lib"))
1960 ;; Tests fail with: ‘lmdb.tool: Please specify environment (--env)’.
1962 (home-page "https://github.com/dw/py-lmdb")
1963 (synopsis "Python binding for the ‘Lightning’ database (LMDB)")
1965 "python-lmdb or py-lmdb is a Python binding for the @dfn{Lightning
1966 Memory-Mapped Database} (LMDB), a high-performance key-value store.")
1968 (list license:openldap2.8
1969 ;; ‘lib/win32/inttypes.h’ and ‘lib/win32-stdint/stdint.h’ are BSD-3,
1970 ;; but not actually needed on platforms currently supported by Guix.
1973 (define-public python2-lmdb
1974 (package-with-python2 python-lmdb))
1976 (define-public python-orator
1978 (name "python-orator")
1982 (uri (pypi-uri "orator" version))
1985 "14r58z64fdp76ixnvmi4lni762b405ynmsx6chr1qihs3yl9zn6c"))))
1986 (build-system python-build-system)
1989 (modify-phases %standard-phases
1990 (add-after 'unpack 'loosen-dependencies
1991 ;; Tests are not actually run since they are not included with the
1992 ;; distributed package, but dependencies are checked.
1994 (substitute* "setup.py"
1996 (("flexmock==0.9.7") "flexmock")
1997 ;; The pytest-mock package is out of date, so we remove minimum
1998 ;; version requirement.
1999 (("pytest-mock.*'") "pytest-mock'"))
2002 `(("python-pytest-mock" ,python-pytest-mock)
2003 ("python-pytest" ,python-pytest)
2004 ("python-flexmock" ,python-flexmock)))
2006 `(("python-backpack" ,python-backpack)
2007 ("python-blinker" ,python-blinker)
2008 ("python-cleo" ,python-cleo)
2009 ("python-faker" ,python-faker)
2010 ("python-inflection" ,python-inflection)
2011 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
2012 ("python-pendulum" ,python-pendulum)
2013 ("python-pyaml" ,python-pyaml)
2014 ("python-pygments" ,python-pygments)
2015 ("python-simplejson" ,python-simplejson)
2016 ("python-six" ,python-six)
2017 ("python-wrapt" ,python-wrapt)))
2018 (home-page "https://orator-orm.com/")
2019 (synopsis "ActiveRecord ORM for Python")
2021 "Orator provides a simple ActiveRecord-like Object Relational Mapping
2022 implementation for Python.")
2023 (license license:expat)
2024 (properties `((python2-variant . ,(delay python2-orator))))))
2026 (define-public python2-orator
2027 (package-with-python2 (strip-python2-variant python-orator)))
2029 (define-public virtuoso-ose
2031 (name "virtuoso-ose")
2037 "https://github.com/openlink/virtuoso-opensource/releases/"
2038 "download/v" version "/virtuoso-opensource-" version ".tar.gz"))
2040 (base32 "12dqam1gc1v93l0bj0vlpvjqppki6y1hqrlznywxnw0rrz9pb002"))))
2041 (build-system gnu-build-system)
2043 `(#:tests? #f)) ; Tests require a network connection.
2045 `(("openssl" ,openssl)
2046 ("net-tools" ,net-tools)))
2047 (home-page "http://vos.openlinksw.com/owiki/wiki/VOS/")
2048 (synopsis "Multi-model database system")
2049 (description "Virtuoso is a scalable cross-platform server that combines
2050 relational, graph, and document data management with web application server
2051 and web services platform functionality.")
2052 ;; configure: error: ... can only be build on 64bit platforms
2053 (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux"))
2054 (license license:gpl2)))
2056 (define-public r-rmysql
2063 (uri (cran-uri "RMySQL" version))
2066 "01891kn263b02y6addgpy3gn5axg7m10bqbqv7dg9yx9k85am590"))))
2067 (properties `((upstream-name . "RMySQL")))
2068 (build-system r-build-system)
2070 `(("pkg-config" ,pkg-config)))
2072 `(("mariadb" ,mariadb)
2075 `(("r-dbi" ,r-dbi)))
2076 (home-page "https://github.com/r-dbi/RMySQL")
2077 (synopsis "Database interface and MySQL driver for R")
2079 "This package provides a DBI interface to MySQL / MariaDB. The RMySQL
2080 package contains an old implementation based on legacy code from S-PLUS which
2081 is being phased out. A modern MySQL client based on Rcpp is available from
2082 the RMariaDB package.")
2083 (license license:gpl2)))
2085 (define-public python-ccm
2092 (uri (pypi-uri "ccm" version))
2095 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
2096 (build-system python-build-system)
2098 `(("python-pyyaml" ,python-pyyaml)
2099 ;; Not listed in setup.py, but used in ccmlib/node.py for full
2101 ("python-psutil" ,python-psutil)
2102 ("python-six" ,python-six)))
2103 (home-page "https://github.com/pcmanus/ccm")
2104 (synopsis "Cassandra Cluster Manager for Apache Cassandra clusters on
2106 (description "Cassandra Cluster Manager is a development tool for testing
2107 local Cassandra clusters. It creates, launches and removes Cassandra clusters
2109 (license license:asl2.0)))
2111 (define-public python2-ccm
2112 (package-with-python2 python-ccm))
2114 (define-public python2-pysqlite
2116 (name "python2-pysqlite")
2121 (uri (pypi-uri "pysqlite" version))
2124 "1424gwq9sil2ffmnizk60q36vydkv8rxs6m7xs987kz8cdc37lqp"))))
2125 (build-system python-build-system)
2127 `(("sqlite" ,sqlite)))
2129 `(#:python ,python-2 ; incompatible with Python 3
2130 #:tests? #f)) ; no test target
2131 (home-page "https://github.com/ghaering/pysqlite")
2132 (synopsis "SQLite bindings for Python")
2134 "Pysqlite provides SQLite bindings for Python that comply to the
2135 Database API 2.0T.")
2136 (license license:zlib)))
2138 (define-public python-sqlalchemy
2140 (name "python-sqlalchemy")
2145 (uri (string-append "https://pypi.python.org/packages/source/S/"
2146 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
2149 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
2150 (build-system python-build-system)
2152 `(("python-cython" ,python-cython) ;for c extensions
2153 ("python-pytest" ,python-pytest)
2154 ("python-mock" ,python-mock))) ;for tests
2157 (modify-phases %standard-phases
2159 (lambda _ (zero? (system* "py.test")))))))
2160 (home-page "http://www.sqlalchemy.org")
2161 (synopsis "Database abstraction library")
2163 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
2164 gives application developers the full power and flexibility of SQL. It
2165 provides a full suite of well known enterprise-level persistence patterns,
2166 designed for efficient and high-performing database access, adapted into a
2167 simple and Pythonic domain language.")
2168 (license license:x11)))
2170 (define-public python2-sqlalchemy
2171 (package-with-python2 python-sqlalchemy))
2173 (define-public python-sqlalchemy-utils
2175 (name "python-sqlalchemy-utils")
2180 (uri (pypi-uri "SQLAlchemy-Utils" version))
2183 "1myn71dn8j74xglyh46f12sh8ywb7j0j732rzwq70kvwwnq32m73"))))
2184 (build-system python-build-system)
2186 '(#:tests? #f)) ; FIXME: Many tests require a running database server.
2188 ;; (modify-phases %standard-phases
2191 ;; (zero? (system* "py.test" "sqlalchemy_utils" "tests")))))
2193 `(("python-six" ,python-six)
2194 ("python-sqlalchemy" ,python-sqlalchemy)))
2196 `(("python-dateutil" ,python-dateutil)
2197 ("python-flexmock" ,python-flexmock)
2198 ("python-psycopg2" ,python-psycopg2)
2199 ("python-pytest" ,python-pytest)
2200 ("python-pytz" ,python-pytz)))
2201 (home-page "https://github.com/kvesteri/sqlalchemy-utils")
2202 (synopsis "Various utility functions for SQLAlchemy")
2204 "SQLAlchemy-utils provides various utility functions and custom data types
2205 for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
2207 You might also want to install the following optional dependencies:
2209 @item @code{python-passlib}
2210 @item @code{python-babel}
2211 @item @code{python-cryptography}
2212 @item @code{python-pytz}
2213 @item @code{python-psycopg2}
2214 @item @code{python-furl}
2215 @item @code{python-flask-babel}
2218 (license license:bsd-3)))
2220 (define-public python2-sqlalchemy-utils
2221 (package-with-python2 python-sqlalchemy-utils))
2223 (define-public python-alembic
2225 (name "python-alembic")
2230 (uri (pypi-uri "alembic" version))
2233 "0cm73vabrqj92v7a0wwvldj8j7bc7dwv358kvkk7p87gx7mm2a04"))))
2234 (build-system python-build-system)
2236 `(("python-mock" ,python-mock)
2237 ("python-pytest-cov" ,python-pytest-cov)))
2239 `(("python-dateutil" ,python-dateutil)
2240 ("python-sqlalchemy" ,python-sqlalchemy)
2241 ("python-mako" ,python-mako)
2242 ("python-editor" ,python-editor)))
2243 (home-page "https://bitbucket.org/zzzeek/alembic")
2245 "Database migration tool for SQLAlchemy")
2247 "Alembic is a lightweight database migration tool for usage with the
2248 SQLAlchemy Database Toolkit for Python.")
2249 (license license:expat)))
2251 (define-public python2-alembic
2252 (package-with-python2 python-alembic))
2254 (define-public python-pickleshare
2256 (name "python-pickleshare")
2261 (uri (pypi-uri "pickleshare" version))
2263 (base32 "0yvk14dzxk7g6qpr7iw23vzqbsr0dh4ij4xynkhnzpfz4xr2bac4"))))
2264 (build-system python-build-system)
2266 `(#:phases (modify-phases %standard-phases
2269 (invoke "pytest"))))))
2271 `(("python-pytest" ,python-pytest)))
2272 (home-page "https://github.com/vivainio/pickleshare")
2273 (synopsis "Tiny key value database with concurrency support")
2275 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
2276 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
2277 shelve, many processes can access the database simultaneously. Changing a
2278 value in database is immediately visible to other processes accessing the same
2279 database. Concurrency is possible because the values are stored in separate
2280 files. Hence the “database” is a directory where all files are governed by
2282 (properties `((python2-variant . ,(delay python2-pickleshare))))
2283 (license license:expat)))
2285 (define-public python2-pickleshare
2286 (let ((pickleshare (package-with-python2
2287 (strip-python2-variant python-pickleshare))))
2288 (package (inherit pickleshare)
2289 (propagated-inputs `(("python2-pathlib2" ,python2-pathlib2)
2290 ,@(package-propagated-inputs pickleshare))))))
2292 (define-public python-apsw
2294 (name "python-apsw")
2295 (version "3.20.1-r1")
2299 (uri (string-append "https://github.com/rogerbinns/apsw/archive/"
2301 (file-name (string-append "apsw-" version ".tar.gz"))
2304 "00ai7m2pqi26qaflhz314d8k5i3syw7xzr145fhfl0crhyh6adz2"))))
2305 (build-system python-build-system)
2307 `(("sqlite" ,sqlite)))
2310 (modify-phases %standard-phases
2313 (invoke "python" "setup.py" "build" "--enable-all-extensions")
2315 (add-after 'build 'build-test-helper
2317 (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
2318 "-I." "-Isqlite3" "src/testextension.c")
2321 (add-after 'install 'check
2322 (lambda* (#:key inputs outputs #:allow-other-keys)
2323 (add-installed-pythonpath inputs outputs)
2324 (invoke "python" "setup.py" "test")
2326 (home-page "https://github.com/rogerbinns/apsw/")
2327 (synopsis "Another Python SQLite Wrapper")
2328 (description "APSW is a Python wrapper for the SQLite
2329 embedded relational database engine. In contrast to other wrappers such as
2330 pysqlite it focuses on being a minimal layer over SQLite attempting just to
2331 translate the complete SQLite API into Python.")
2332 (license license:zlib)))
2334 (define-public python2-apsw
2335 (package-with-python2 python-apsw))
2337 (define-public python2-neo4j-driver
2339 (name "python2-neo4j-driver")
2340 ;; NOTE: When upgrading to 1.5.0, please add a python3 variant.
2344 (uri (pypi-uri "neo4j-driver" version))
2347 "011r1vh182p8mm83d8dz9rfnc3l7rf7fd00cyrbyfzi71jmc4g98"))))
2348 (build-system python-build-system)
2350 `(#:python ,python-2))
2351 (home-page "https://neo4j.com/developer/python/")
2352 (synopsis "Neo4j driver code written in Python")
2353 (description "This package provides the Neo4j Python driver that connects
2354 to the database using Neo4j's binary protocol. It aims to be minimal, while
2355 being idiomatic to Python.")
2356 (license license:asl2.0)))
2358 (define-public python2-py2neo
2360 (name "python2-py2neo")
2364 (uri (pypi-uri "py2neo" version))
2367 "1f1q95vqcvlc3nsc33p841swnjdcjazddlq2dzi3qfnjqjrajxw1"))))
2368 (build-system python-build-system)
2370 `(#:python ,python-2))
2371 (home-page "http://py2neo.org")
2372 (synopsis "Library and toolkit for working with Neo4j in Python")
2373 (description "This package provides a client library and toolkit for
2374 working with Neo4j from within Python applications and from the command
2375 line. The core library has no external dependencies and has been carefully
2376 designed to be easy and intuitive to use.")
2377 (license license:asl2.0)))
2379 (define-public python-psycopg2
2381 (name "python-psycopg2")
2386 (uri (pypi-uri "psycopg2" version))
2389 "0rda1j02ds6s28752fhmpwg761sh6jsxi1gpczqkrd28cki1cywv"))))
2390 (build-system python-build-system)
2392 ;; Tests would require a postgresql database "psycopg2_test"
2393 ;; and a running postgresql database management service.
2394 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
2396 `(("postgresql" ,postgresql))) ; libpq
2397 (home-page "http://initd.org/psycopg/")
2398 (synopsis "Python PostgreSQL adapter")
2400 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
2401 (license license:lgpl3+)))
2403 (define-public python2-psycopg2
2404 (package-with-python2 python-psycopg2))
2406 (define-public python-sadisplay
2408 (name "python-sadisplay")
2413 (uri (pypi-uri "sadisplay" version))
2416 "01d9lxhmgpb68gy8rd6zj6fcwp84n2qq210n1qsk3qbsir79bzh4"))))
2417 (build-system python-build-system)
2419 `(("python-sqlalchemy" ,python-sqlalchemy)))
2422 `(("python-nose" ,python-nose)))
2423 (home-page "https://bitbucket.org/estin/sadisplay")
2424 (synopsis "SQLAlchemy schema displayer")
2425 (description "This package provides a program to build Entity
2426 Relationship diagrams from a SQLAlchemy model (or directly from the
2428 (license license:bsd-3)))
2430 (define-public python2-sadisplay
2431 (package-with-python2 python-sadisplay))
2433 (define-public python-mysqlclient
2435 (name "python-mysqlclient")
2440 (uri (pypi-uri "mysqlclient" version))
2443 "0qkj570x4rbsblji6frvsvp2v1ap32dqzj1lq62zp9515ffsyaj5"))))
2444 (build-system python-build-system)
2446 `(("mariadb" ,mariadb)
2447 ("nose" ,python-nose)
2448 ("mock" ,python-mock)
2449 ("py.test" ,python-pytest)))
2453 ("openssl" ,openssl)))
2454 (home-page "https://github.com/PyMySQL/mysqlclient-python")
2455 (synopsis "MySQLdb is an interface to the popular MySQL database server for Python")
2456 (description "MySQLdb is an interface to the popular MySQL database server
2457 for Python. The design goals are:
2459 @item Compliance with Python database API version 2.0 [PEP-0249],
2460 @item Thread-safety,
2461 @item Thread-friendliness (threads will not block each other).
2463 (license license:gpl2)))
2465 (define-public python2-mysqlclient
2466 (package-with-python2 python-mysqlclient))
2468 (define-public python-hiredis
2470 (name "python-hiredis")
2475 (uri (pypi-uri "hiredis" version))
2478 "1dfm2k9l9zar9nw9fwmm74zrgraxdxs04vx9li56fjcf289qx5fa"))))
2479 (build-system python-build-system)
2483 (home-page "https://github.com/redis/hiredis-py")
2484 (synopsis "Python extension that wraps protocol parsing code in hiredis")
2485 (description "Python-hiredis is a python extension that wraps protocol
2486 parsing code in hiredis. It primarily speeds up parsing of multi bulk replies.")
2487 (license license:bsd-3)))
2489 (define-public python2-hiredis
2490 (package-with-python2 python-hiredis))
2492 (define-public python-fakeredis
2494 (name "python-fakeredis")
2499 (uri (pypi-uri "fakeredis" version))
2502 "0zncahj3byyasyfx9i7k991ph0n0lq8v3a21pqri5qxn9564bk9r"))))
2503 (build-system python-build-system)
2507 (home-page "https://github.com/jamesls/fakeredis")
2508 (synopsis "Fake implementation of redis API for testing purposes")
2509 (description "Fakeredis is a pure python implementation of the redis-py
2510 python client that simulates talking to a redis server. This was created for a
2511 single purpose: to write unittests. Setting up redis is not hard, but many time
2512 you want to write unittests that do not talk to an external server (such as
2513 redis). This module now allows tests to simply use this module as a reasonable
2514 substitute for redis.")
2515 (license license:bsd-3)))
2517 (define-public python2-fakeredis
2518 (package-with-python2 python-fakeredis))
2520 (define-public python-redis
2522 (name "python-redis")
2527 (uri (pypi-uri "redis" version))
2529 (base32 "03vcgklykny0g0wpvqmy8p6azi2s078317wgb2xjv5m2rs9sjb52"))))
2530 (build-system python-build-system)
2531 ;; Tests require a running Redis server
2532 (arguments '(#:tests? #f))
2533 ;; As long as we are not running test, we do not need this input :-)
2535 ;; `(("python-pytest" ,python-pytest)))
2536 (home-page "https://github.com/andymccurdy/redis-py")
2537 (synopsis "Redis Python client")
2539 "This package provides a Python interface to the Redis key-value store.")
2540 (license license:expat)))
2542 (define-public python2-redis
2543 (package-with-python2 python-redis))
2545 (define-public python-rq
2552 (uri (pypi-uri "rq" version))
2554 (base32 "0gaq5pnh0zy46r8jvygi0ifbvz3pq6i7xla78ijcgjw0x77qzsdh"))))
2555 (build-system python-build-system)
2557 `(("python-click" ,python-click)
2558 ("python-redis" ,python-redis)))
2559 (home-page "http://python-rq.org/")
2560 (synopsis "Simple job queues for Python")
2562 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2563 processing them in the background with workers. It is backed by Redis and it
2564 is designed to have a low barrier to entry.")
2565 (license license:bsd-2)))
2567 (define-public python2-rq
2568 (package-with-python2 python-rq))
2570 (define-public python-trollius-redis
2572 (name "python-trollius-redis")
2577 (uri (pypi-uri "trollius_redis" version))
2580 "0k3vypszmgmaipgw9xscvgm79h2zd6p6ci8gdp5sxl6g5kbqr9fy"))))
2581 (build-system python-build-system)
2582 ;; TODO: Tests require packaging 'hiredis'.
2583 (arguments '(#:tests? #f))
2584 (home-page "https://github.com/benjolitz/trollius-redis")
2585 (synopsis "Port of asyncio-redis to trollius")
2586 (description "@code{trollius-redis} is a Redis client for Python
2587 trollius. It is an asynchronious IO (PEP 3156) implementation of the
2589 (license license:bsd-2)))
2591 (define-public python2-trollius-redis
2592 (package-with-python2 python-trollius-redis))
2594 (define-public python-sqlparse
2596 (name "python-sqlparse")
2600 (uri (pypi-uri "sqlparse" version))
2603 "1v3xh0bkfhb262dbndgzhivpnhdwavdzz8jjhx9vx0xbrx2880nf"))))
2604 (build-system python-build-system)
2607 (modify-phases %standard-phases
2609 (lambda _ (zero? (system* "py.test")))))))
2611 `(("python-pytest" ,python-pytest)))
2612 (home-page "https://github.com/andialbrecht/sqlparse")
2613 (synopsis "Non-validating SQL parser")
2614 (description "Sqlparse is a non-validating SQL parser for Python. It
2615 provides support for parsing, splitting and formatting SQL statements.")
2616 (license license:bsd-3)))
2618 (define-public python2-sqlparse
2619 (package-with-python2 python-sqlparse))
2621 (define-public python-sql
2628 (uri (pypi-uri "python-sql" version))
2631 "0p6kaqj02vz0habmdx37zjk6hjxdfm8aw737zs059vvpr70ird87"))))
2632 (build-system python-build-system)
2633 (home-page "https://python-sql.tryton.org/")
2634 (synopsis "Library to write SQL queries in a pythonic way")
2635 (description "@code{python-sql} is a library to write SQL queries, that
2636 transforms idiomatic python function calls to well-formed SQL queries.")
2637 (license license:bsd-3)))
2639 (define-public python2-sql
2640 (package-with-python2 python-sql))
2642 (define-public mongo-tools
2644 (name "mongo-tools")
2647 (origin (method git-fetch)
2649 (url "https://github.com/mongodb/mongo-tools")
2650 (commit (string-append "r" version))))
2651 (file-name (git-file-name name version))
2654 "1bcsz5cvj39a7nsxsfqmz9igrw33j6yli9kffigqyscs52amw7x1"))))
2655 (build-system go-build-system)
2657 `(#:import-path "github.com/mongodb/mongo-tools"
2658 #:modules ((srfi srfi-1)
2659 (guix build go-build-system)
2663 '("bsondump" "mongodump" "mongoexport" "mongofiles"
2664 "mongoimport" "mongooplog" "mongorestore"
2665 "mongostat" "mongotop")))
2666 (modify-phases %standard-phases
2667 (add-after 'unpack 'delete-bundled-source-code
2669 (delete-file-recursively
2670 "src/github.com/mongodb/mongo-tools/vendor")
2672 ;; We don't need to install the source code for end-user applications
2673 (delete 'install-source)
2676 (every (lambda (tool)
2679 ;; This is where the tests expect to find the
2681 "-o" ,(string-append
2682 "src/github.com/mongodb/mongo-tools/bin/"
2685 "-tags=\"ssl sasl\""
2687 "-extldflags=-Wl,-z,now,-z,relro"
2689 "src/github.com/mongodb/mongo-tools/"
2690 tool "/main/" tool ".go"))))
2691 (simple-format #t "build: running ~A\n"
2692 (string-join command))
2693 (apply invoke command)))
2697 (with-directory-excursion "src"
2698 (every (lambda (tool)
2701 (string-append "github.com/mongodb/mongo-tools/" tool)))
2704 (lambda* (#:key outputs #:allow-other-keys)
2705 (for-each (lambda (tool)
2707 (string-append "src/github.com/mongodb/mongo-tools/bin/" tool)
2708 (string-append (assoc-ref outputs "out")
2712 `(("go-github.com-howeyc-gopass" ,go-github.com-howeyc-gopass)
2713 ("go-github.com-jessevdk-go-flags" ,go-github.com-jessevdk-go-flags)
2714 ("go-golang.org-x-crypto-ssh-terminal" ,go-golang.org-x-crypto-ssh-terminal)
2715 ("go-gopkg.in-mgo.v2" ,go-gopkg.in-mgo.v2)
2716 ("go-gopkg.in-tomb.v2" ,go-gopkg.in-tomb.v2)
2717 ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)
2718 ("go-github.com-smartystreets-goconvey" ,go-github.com-smartystreets-goconvey)))
2719 (home-page "https://github.com/mongodb/mongo-tools")
2720 (synopsis "Various tools for interacting with MongoDB and BSON")
2722 "This package includes a collection of tools related to MongoDB.
2725 Display BSON files in a human-readable format
2727 Convert data from JSON, TSV or CSV and insert them into a collection
2729 Write an existing collection to CSV or JSON format
2730 @item mongodump/mongorestore
2731 Dump MongoDB backups to disk in the BSON format
2733 Read MongoDB backups in the BSON format, and restore them to a live database
2735 Monitor live MongoDB servers, replica sets, or sharded clusters
2737 Read, write, delete, or update files in GridFS
2739 Replay oplog entries between MongoDB servers
2741 Monitor read/write activity on a mongo server
2743 (license license:asl2.0)))
2745 (define-public apache-arrow
2747 (name "apache-arrow")
2753 (url "https://github.com/apache/arrow")
2754 (commit (string-append "apache-arrow-" version))))
2755 (file-name (git-file-name name version))
2758 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2759 (build-system cmake-build-system)
2763 (modify-phases %standard-phases
2764 (add-before 'configure 'enter-source-directory
2765 (lambda _ (chdir "cpp") #t))
2766 (add-after 'unpack 'set-env
2768 (setenv "BOOST_ROOT" (assoc-ref %build-inputs "boost"))
2769 (setenv "BROTLI_HOME" (assoc-ref %build-inputs "brotli"))
2770 (setenv "FLATBUFFERS_HOME" (assoc-ref %build-inputs "flatbuffers"))
2771 (setenv "JEMALLOC_HOME" (assoc-ref %build-inputs "jemalloc"))
2772 (setenv "RAPIDJSON_HOME" (assoc-ref %build-inputs "rapidjson"))
2774 #:build-type "Release"
2776 (list "-DARROW_PYTHON=ON"
2778 ;; Install to PREFIX/lib (the default is
2780 (string-append "-DCMAKE_INSTALL_LIBDIR="
2781 (assoc-ref %outputs "out")
2784 ;; XXX These Guix package offer static
2785 ;; libraries that are not position independent,
2786 ;; and ld fails to link them into the arrow .so
2787 "-DARROW_WITH_SNAPPY=OFF"
2788 "-DARROW_WITH_ZLIB=OFF"
2789 "-DARROW_WITH_ZSTD=OFF"
2790 "-DARROW_WITH_LZ4=OFF"
2792 ;; Building the tests forces on all the
2793 ;; optional features and the use of static
2795 "-DARROW_BUILD_TESTS=OFF"
2796 "-DARROW_BUILD_STATIC=OFF")))
2799 ("rapidjson" ,rapidjson)
2800 ("brotli" ,google-brotli)
2801 ("flatbuffers" ,flatbuffers)
2802 ;; Arrow is not yet compatible with jemalloc >= 5:
2803 ;; https://issues.apache.org/jira/browse/ARROW-1141
2804 ("jemalloc" ,jemalloc-4.5.0)
2805 ("python-3" ,python)
2806 ("python-numpy" ,python-numpy)))
2807 (home-page "https://arrow.apache.org/")
2808 (synopsis "Columnar in-memory analytics")
2809 (description "Apache Arrow is a columnar in-memory analytics layer
2810 designed to accelerate big data. It houses a set of canonical in-memory
2811 representations of flat and hierarchical data along with multiple
2812 language-bindings for structure manipulation. It also provides IPC and common
2813 algorithm implementations.")
2814 (license license:asl2.0)))
2816 (define-public python-pyarrow
2818 (name "python-pyarrow")
2824 (url "https://github.com/apache/arrow")
2825 (commit (string-append "apache-arrow-" version))))
2826 (file-name (git-file-name name version))
2829 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2830 (build-system python-build-system)
2832 '(#:tests? #f ; XXX Test failures related to missing libhdfs, libhdfs3,
2833 ; and "Unsupported numpy type 22".
2835 (modify-phases %standard-phases
2836 (add-after 'unpack 'enter-source-directory
2837 (lambda _ (chdir "python") #t))
2838 (add-after 'unpack 'set-env
2840 (setenv "ARROW_HOME" (assoc-ref %build-inputs "apache-arrow"))
2843 `(("apache-arrow" ,apache-arrow)
2844 ("python-numpy" ,python-numpy)
2845 ("python-pandas" ,python-pandas)
2846 ("python-six" ,python-six)))
2849 ("python-cython" ,python-cython)
2850 ("python-pytest" ,python-pytest)
2851 ("python-setuptools-scm" ,python-setuptools-scm)))
2852 (home-page "https://arrow.apache.org/docs/python/")
2853 (synopsis "Python bindings for Apache Arrow")
2854 (description "This library provides a Pythonic API wrapper for the reference
2855 Arrow C++ implementation, along with tools for interoperability with pandas,
2856 NumPy, and other traditional Python scientific computing packages.")
2857 (license license:asl2.0)))
2859 (define-public python2-pyarrow
2860 (package-with-python2 python-pyarrow))