Correct name and Email for ng0.
[jackhill/guix/guix.git] / gnu / packages / databases.scm
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>
35 ;;;
36 ;;; This file is part of GNU Guix.
37 ;;;
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.
42 ;;;
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.
47 ;;;
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/>.
50
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))
116
117 (define-public 4store
118 (package
119 (name "4store")
120 (version "1.1.6")
121 (source (origin
122 (method url-fetch)
123 (uri (string-append "https://github.com/4store/4store/archive/v"
124 version ".tar.gz"))
125 (file-name (string-append name "-" version ".tar.gz"))
126 (sha256
127 (base32 "004fmcf1w75zhc1x3zc6kc97j4jqn2v5nhk6yb3z3cpfrhzi9j50"))
128 (patches (list (search-patch "4store-fix-buildsystem.patch")))))
129 (build-system gnu-build-system)
130 (native-inputs
131 `(("perl" ,perl)
132 ("python" ,python-2)
133 ("autoconf" ,autoconf)
134 ("automake" ,automake)
135 ("gettext" ,gettext-minimal)
136 ("libtool" ,libtool)
137 ("pcre" ,pcre "bin") ;for 'pcre-config'
138 ("pkg-config" ,pkg-config)))
139 (inputs
140 `(("glib" ,glib)
141 ("rasqal" ,rasqal)
142 ("libxml2" ,libxml2)
143 ("raptor2" ,raptor2)
144 ("readline" ,readline)
145 ("avahi" ,avahi)
146 ("cyrus-sasl" ,cyrus-sasl)
147 ("openssl" ,openssl)
148 ("util-linux" ,util-linux)))
149 (arguments
150 `(#:phases
151 (modify-phases %standard-phases
152 (add-after 'unpack 'generate-configure
153 (lambda _
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+)))
161
162 (define-public gdbm
163 (package
164 (name "gdbm")
165 (version "1.13")
166 (source (origin
167 (method url-fetch)
168 (uri (string-append "mirror://gnu/gdbm/gdbm-"
169 version ".tar.gz"))
170 (sha256
171 (base32
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")
176 (synopsis
177 "Hash library of database functions compatible with traditional dbm")
178 (description
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+)))
183
184 (define-public go-gopkg.in-mgo.v2
185 (package
186 (name "go-gopkg.in-mgo.v2")
187 (version "2016.08.01")
188 (source (origin
189 (method git-fetch)
190 (uri (git-reference
191 (url "https://github.com/go-mgo/mgo")
192 (commit (string-append "r" version))))
193 (file-name (git-file-name name version))
194 (sha256
195 (base32
196 "0rwbi1z63w43b0z9srm8m7iz1fdwx7bq7n2mz862d6liiaqa59jd"))))
197 (build-system go-build-system)
198 (arguments
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'
202 #:tests? #f
203 #:phases
204 (modify-phases %standard-phases
205 (delete 'reset-gzip-timestamps)
206 (add-before 'check 'start-mongodb
207 (lambda* (#:key tests? #:allow-other-keys)
208 (or (not tests?)
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)
213 (or (not tests?)
214 (with-directory-excursion "src/gopkg.in/mgo.v2"
215 (invoke "make" "stopdb"))))))))
216 (native-inputs
217 `(("go-gopkg.in-check.v1" ,go-gopkg.in-check.v1)
218 ("mongodb" ,mongodb)
219 ("daemontools" ,daemontools)))
220 (synopsis "@code{mgo} offers a rich MongoDB driver for Go.")
221 (description
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)))
227
228 (define-public bdb
229 (package
230 (name "bdb")
231 (version "6.2.32")
232 (source (origin
233 (method url-fetch)
234 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
235 version ".tar.gz"))
236 (sha256
237 (base32
238 "1yx8wzhch5wwh016nh0kfxvknjkafv6ybkqh6nh7lxx50jqf5id9"))))
239 (build-system gnu-build-system)
240 (outputs '("out" ; programs, libraries, headers
241 "doc")) ; 94 MiB of HTML docs
242 (arguments
243 '(#:tests? #f ; no check target available
244 #:disallowed-references ("doc")
245 #:phases
246 (modify-phases %standard-phases
247 (replace 'configure
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")))
255
256 (zero?
257 (system* "./dist/configure"
258 (string-append "--prefix=" out)
259 (string-append "CONFIG_SHELL=" (which "bash"))
260 (string-append "SHELL=" (which "bash"))
261
262 ;; Remove 7 MiB of .a files.
263 "--disable-static"
264
265 ;; The compatibility mode is needed by some packages,
266 ;; notably iproute2.
267 "--enable-compat185"
268
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")
274 (description
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))
280 (home-page
281 "http://www.oracle.com/us/products/database/berkeley-db/overview/index.html")))
282
283 (define-public bdb-5.3
284 (package (inherit bdb)
285 (name "bdb")
286 (version "5.3.28")
287 (license (license:non-copyleft "file://LICENSE"
288 "See LICENSE in the distribution."))
289 (source (origin
290 (method url-fetch)
291 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
292 version ".tar.gz"))
293 (sha256
294 (base32
295 "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0"))))
296 (arguments
297 `(#:tests? #f ; no check target available
298 #:disallowed-references ("doc")
299 #:phases
300 (modify-phases %standard-phases
301 (replace 'configure
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")))
309
310 (zero?
311 (system* "./dist/configure"
312 (string-append "--prefix=" out)
313 (string-append "CONFIG_SHELL=" (which "bash"))
314 (string-append "SHELL=" (which "bash"))
315
316 ;; Bdb doesn't recognize aarch64 as an architecture.
317 ,@(if (string=? "aarch64-linux" (%current-system))
318 '("--build=aarch64-unknown-linux-gnu")
319 '())
320
321 ;; Remove 7 MiB of .a files.
322 "--disable-static"
323
324 ;; The compatibility mode is needed by some packages,
325 ;; notably iproute2.
326 "--enable-compat185"
327
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"))))))))))
332
333 (define-public es-dump-restore
334 (package
335 (name "es-dump-restore")
336 (version "2.1.0")
337 (source
338 (origin
339 (method url-fetch)
340 (uri (rubygems-uri "es_dump_restore" version))
341 (sha256
342 (base32
343 "020yk7f1hw48clmf5501z3xv9shsdchyymcv0y2cci2c1xvr1mim"))))
344 (build-system ruby-build-system)
345 (arguments
346 '(#:tests? #f)) ;; No testsuite.
347 (propagated-inputs
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")
354 (description
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)))
360
361 (define-public leveldb
362 (package
363 (name "leveldb")
364 (version "1.20")
365 (source (origin
366 (method url-fetch)
367 (uri (string-append "https://github.com/google/leveldb"
368 "/archive/v" version ".tar.gz"))
369 (file-name (string-append name "-" version ".tar.gz"))
370 (sha256
371 (base32
372 "0r36bcrj6b2afsp4aw1gjai3jbs1c7734pxpc1jz7hh9nasyiazm"))))
373 (build-system gnu-build-system)
374 (arguments
375 '(#:make-flags (list "CC=gcc")
376 #:phases
377 (modify-phases %standard-phases
378 (delete 'configure)
379 (replace 'install
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)
389 #t))))))
390 (inputs
391 `(("snappy" ,snappy)))
392 (home-page "http://leveldb.org/")
393 (synopsis "Fast key-value storage library")
394 (description
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)))
398
399 (define-public memcached
400 (package
401 (name "memcached")
402 (version "1.5.6")
403 (source
404 (origin
405 (method url-fetch)
406 (uri (string-append
407 "https://memcached.org/files/memcached-" version ".tar.gz"))
408 (sha256
409 (base32
410 "00szy9d4szaixi260dcd4846zci04y0sd47ia2lzg0bxkn2ywxcn"))))
411 (build-system gnu-build-system)
412 (inputs
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
419 applications.")
420 (license license:bsd-3)))
421
422 (define-public mongodb
423 (package
424 (name "mongodb")
425 (version "3.4.10")
426 (source (origin
427 (method url-fetch)
428 (uri (string-append "https://github.com/mongodb/mongo/archive/r"
429 version ".tar.gz"))
430 (file-name (string-append name "-" version ".tar.gz"))
431 (sha256
432 (base32 "0676lvkljj7a5hdhv78dbykqnqrj9lbn9799mi84b8vbnzsq961r"))
433 (modules '((guix build utils)))
434 (snippet
435 '(begin
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"))))
442 (patches
443 (list
444 (search-patch "mongodb-support-unknown-linux-distributions.patch")))))
445 (build-system scons-build-system)
446 (inputs
447 `(("openssl" ,openssl)
448 ("pcre" ,pcre)
449 ,@(match (%current-system)
450 ((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
451 `(("wiredtiger" ,wiredtiger)))
452 (_ `()))
453 ("yaml-cpp" ,yaml-cpp)
454 ("zlib" ,zlib)
455 ("snappy" ,snappy)))
456 (native-inputs
457 `(("valgrind" ,valgrind)
458 ("perl" ,perl)
459 ("python" ,python2-minimal)
460 ("python2-pymongo" ,python2-pymongo)
461 ("python2-pyyaml" ,python2-pyyaml)
462 ("tzdata" ,tzdata)))
463 (arguments
464 `(#:scons ,scons-python2
465 #:phases
466 (let ((common-options
467 `(;; "--use-system-tcmalloc" TODO: Missing gperftools
468 "--use-system-pcre"
469 ;; wiredtiger is 64-bit only
470 ,,(if (any (cute string-prefix? <> (or (%current-target-system)
471 (%current-system)))
472 '("i686-linux" "armhf-linux"))
473 ``"--wiredtiger=off"
474 ``"--use-system-wiredtiger")
475 ;; TODO
476 ;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1
477 ;; --use-system-boost
478 "--use-system-snappy"
479 "--use-system-zlib"
480 "--use-system-valgrind"
481 ;; "--use-system-stemmer" TODO: Missing relevant package
482 "--use-system-yaml"
483 "--disable-warnings-as-errors"
484 ,(format #f "--jobs=~a" (parallel-job-count))
485 "--ssl")))
486 (modify-phases %standard-phases
487 (add-after 'unpack 'scons-propagate-environment
488 (lambda _
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, "))
494 #t))
495 (add-after 'unpack 'create-version-file
496 (lambda _
497 (call-with-output-file "version.json"
498 (lambda (port)
499 (display ,(simple-format #f "{
500 \"version\": \"~A\"
501 }" version) port)))
502 #t))
503 (replace 'build
504 (lambda _
505 (zero? (apply system*
506 `("scons"
507 ,@common-options
508 "mongod" "mongo" "mongos")))))
509 (replace 'check
510 (lambda* (#:key tests? inputs #:allow-other-keys)
511 (setenv "TZDIR"
512 (string-append (assoc-ref inputs "tzdata")
513 "/share/zoneinfo"))
514 (or (not tests?)
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.
519 (begin
520 (apply
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$")
525 "")
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$")
529 ""))
530 (invoke "python" "buildscripts/resmoke.py"
531 "--suites=dbtest,unittests"
532 (format #f "--jobs=~a" (parallel-job-count)))))))
533 (replace 'install
534 (lambda _
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))
539 #t))))))
540 (home-page "https://www.mongodb.org/")
541 (synopsis "High performance and high availability document database")
542 (description
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
549 license:asl2.0))))
550
551 (define-public mysql
552 (package
553 (name "mysql")
554 (version "5.7.21")
555 (source (origin
556 (method url-fetch)
557 (uri (list (string-append
558 "http://dev.mysql.com/get/Downloads/MySQL-"
559 (version-major+minor version) "/"
560 name "-" version ".tar.gz")
561 (string-append
562 "http://downloads.mysql.com/archives/get/file/"
563 name "-" version ".tar.gz")))
564 (sha256
565 (base32
566 "1dq9bgnajf7cq3mrjkwv6w5nwslhs26lkrw56i7w4fbsq9wm087s"))))
567 (build-system cmake-build-system)
568 (arguments
569 `(#:configure-flags
570 '("-DBUILD_CONFIG=mysql_release"
571 "-DWITH_SSL=system"
572 "-DWITH_ZLIB=system"
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
591 (add-after
592 'unpack 'patch-boost-version
593 (lambda _
594 ;; Mysql wants boost-1.59.0 specifically
595 (substitute* "cmake/boost.cmake"
596 (("59")
597 ,(match (string-split (package-version boost) #\.)
598 ((_ minor . _) minor))))))
599 (add-after
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
604 ;; 14 MiB each.
605 (for-each delete-file
606 (find-files (string-append out "/bin")
607 "_embedded$"))
608 #t))))))
609 (native-inputs
610 `(("bison" ,bison)
611 ("perl" ,perl)))
612 (inputs
613 `(("boost" ,boost)
614 ("libaio" ,libaio)
615 ("ncurses" ,ncurses)
616 ("openssl" ,openssl)
617 ("zlib" ,zlib)))
618 (home-page "http://www.mysql.com/")
619 (synopsis "Fast, easy to use, and popular database")
620 (description
621 "MySQL is a fast, reliable, and easy to use relational database
622 management system that supports the standardized Structured Query
623 Language.")
624 (license license:gpl2)))
625
626 (define-public mariadb
627 (package
628 (name "mariadb")
629 (version "10.1.29")
630 (source (origin
631 (method url-fetch)
632 (uri (string-append "https://downloads.mariadb.org/f/"
633 name "-" version "/source/"
634 name "-" version ".tar.gz"))
635 (sha256
636 (base32
637 "1m3ya6c3snnsyscd0waklayqfv0vhws52iizv2j5masj5xhdbfvk"))))
638 (build-system cmake-build-system)
639 (arguments
640 '(#:configure-flags
641 '("-DBUILD_CONFIG=mysql_release"
642 ;; Linking with libarchive fails, like this:
643
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
647
648 ;; For now, disable the features that that use libarchive (xtrabackup).
649 "-DWITH_LIBARCHIVE=OFF"
650
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")
665 #:phases
666 (modify-phases %standard-phases
667 (add-before
668 'configure 'pre-configure
669 (lambda _
670 (setenv "CONFIG_SHELL" (which "sh"))
671 #t))
672 (add-after
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")
678 (("basedir=\"\"")
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")))))))))
685 (native-inputs
686 `(("bison" ,bison)
687 ("perl" ,perl)))
688 (inputs
689 `(("jemalloc" ,jemalloc)
690 ("libaio" ,libaio)
691 ("libxml2" ,libxml2)
692 ("ncurses" ,ncurses)
693 ("openssl" ,openssl)
694 ("pcre" ,pcre)
695 ("zlib" ,zlib)))
696 (home-page "https://mariadb.org/")
697 (synopsis "SQL database server")
698 (description
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)))
702
703 (define-public postgresql
704 (package
705 (name "postgresql")
706 (version "10.3")
707 (source (origin
708 (method url-fetch)
709 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
710 version "/postgresql-" version ".tar.bz2"))
711 (sha256
712 (base32
713 "06lkcwsf851z49zqcws5yc77s2yrbaazf2nvbk38hpp31rw6i8kf"))))
714 (build-system gnu-build-system)
715 (arguments
716 `(#:configure-flags '("--with-uuid=e2fs")
717 #:phases
718 (modify-phases %standard-phases
719 (add-before 'configure 'patch-/bin/sh
720 (lambda _
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")))
725 #t))
726 (add-after 'build 'build-contrib
727 (lambda _
728 (zero? (system* "make" "-C" "contrib"))))
729 (add-after 'install 'install-contrib
730 (lambda _
731 (zero? (system* "make" "-C" "contrib" "install")))))))
732 (inputs
733 `(("readline" ,readline)
734 ("libuuid" ,util-linux)
735 ("zlib" ,zlib)))
736 (home-page "https://www.postgresql.org/")
737 (synopsis "Powerful object-relational database system")
738 (description
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"))))
746
747 (define-public postgresql-9.6
748 (package
749 (inherit postgresql)
750 (name "postgresql")
751 (version "9.6.8")
752 (source (origin
753 (method url-fetch)
754 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
755 version "/postgresql-" version ".tar.bz2"))
756 (sha256
757 (base32
758 "0w7bwf19wbdd3jjbjv03cnx56qka4801srcbsayk9v792awv7zga"))))))
759
760 (define-public qdbm
761 (package
762 (name "qdbm")
763 (version "1.8.78")
764 (source
765 (origin
766 (method url-fetch)
767 (uri (string-append "http://fallabs.com/" name "/"
768 name "-" version ".tar.gz"))
769 (sha256
770 (base32
771 "0gmpvhn02pkq280ffmn4da1g4mdr1xxz7l80b7y4n7km1mrzwrml"))))
772 (build-system gnu-build-system)
773 (arguments
774 `( #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
775 (assoc-ref %outputs "out")
776 "/lib"))))
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+)))
786
787 (define-public recutils
788 (package
789 (name "recutils")
790 (version "1.7")
791 (source (origin
792 (method url-fetch)
793 (uri (string-append "mirror://gnu/recutils/recutils-"
794 version ".tar.gz"))
795 (sha256
796 (base32
797 "0cdwa4094x3yx7vn98xykvnlp9rngvd58d19vs3vh5hrvggccg93"))))
798 (build-system gnu-build-system)
799
800 ;; Running tests in parallel leads to test failures and crashes in
801 ;; torture/utils.
802 (arguments '(#:parallel-tests? #f
803 #:configure-flags
804 (list (string-append "--with-bash-headers="
805 (assoc-ref %build-inputs "bash:include")
806 "/include/bash"))
807
808 #:phases (modify-phases %standard-phases
809 (add-before 'build 'set-bash4.4-header-location
810 (lambda _
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 "
817 rest))
818
819 ;; Install to PREFIX/lib/bash to match Bash
820 ;; 4.4's search path.
821 (("^libdir = .*$")
822 "libdir = @libdir@/bash\n"))
823 #t)))))
824
825 (native-inputs `(("emacs" ,emacs-minimal)
826 ("bc" ,bc)
827 ("bash:include" ,bash "include")
828 ("libuuid" ,util-linux)))
829
830 ;; TODO: Add more optional inputs.
831 (inputs `(("curl" ,curl)
832 ("libgcrypt" ,libgcrypt)
833 ("check" ,check)))
834 (synopsis "Manipulate plain text files as databases")
835 (description
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/")))
843
844 (define-public rocksdb
845 (package
846 (name "rocksdb")
847 (version "5.10.4")
848 (source (origin
849 (method url-fetch)
850 (uri (string-append "https://github.com/facebook/rocksdb"
851 "/archive/v" version ".tar.gz"))
852 (file-name (string-append name "-" version ".tar.gz"))
853 (sha256
854 (base32
855 "0hp7jxr99vyc57n708hiqk4lks9a9zmjgfjc21mx6v1rmabj2944"))
856 (modules '((guix build utils)))
857 (snippet
858 '(begin
859 ;; TODO: unbundle gtest.
860 (delete-file "build_tools/gnu_parallel")
861 (substitute* "Makefile"
862 (("build_tools/gnu_parallel") "parallel"))
863 #t))))
864 (build-system gnu-build-system)
865 (arguments
866 `(#:make-flags (list "CC=gcc" "V=1"
867 ;; Ceph requires that RTTI is enabled.
868 "USE_RTTI=1"
869 (string-append "INSTALL_PATH="
870 (assoc-ref %outputs "out"))
871
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)
880 (%current-system))))
881 (or (string-prefix? "x86_64-linux" system)
882 (string-prefix? "aarch64-linux" system)))
883 #:phases
884 (modify-phases %standard-phases
885 (add-after 'unpack 'patch-Makefile
886 (lambda _
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"))))
892 #t))
893 (delete 'configure)
894 ;; The default target is only needed for tests and built on demand.
895 (delete 'build)
896 (add-before 'check 'disable-optimizations
897 (lambda _
898 ;; Prevent the build from passing '-march=native' to the compiler.
899 (setenv "PORTABLE" "1")
900 #t))
901 (add-before 'check 'disable-failing-tests
902 (lambda _
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:]]+\\\\") "\\"))
907 #t))
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)))
916 '())
917 ,@make-flags)))))))
918 (native-inputs
919 `(("parallel" ,parallel)
920 ("perl" ,perl)
921 ("procps" ,procps)
922 ("python" ,python-2)
923 ("which" ,which)))
924 (inputs
925 `(("bzip2" ,bzip2)
926 ("gflags" ,gflags)
927 ("jemalloc" ,jemalloc)
928 ("lz4" ,lz4)
929 ("snappy" ,snappy)
930 ("zlib" ,zlib)))
931 (home-page "http://rocksdb.org/")
932 (synopsis "Persistent key-value store for fast storage")
933 (description
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))))
944
945 (define-public sparql-query
946 (package
947 (name "sparql-query")
948 (version "1.1")
949 (source (origin
950 (method url-fetch)
951 (uri (string-append "https://github.com/tialaramex/"
952 name "/archive/" version ".tar.gz"))
953 (sha256
954 (base32 "0yq3k20472rv8npcc420q9ab6idy584g5y0q501d360k5q0ggr8w"))
955 (file-name (string-append name "-" version ".tar.gz"))))
956 (build-system gnu-build-system)
957 (inputs
958 `(("readline" ,readline)
959 ("ncurses" ,ncurses)
960 ("glib" ,glib)
961 ("libxml2" ,libxml2)
962 ("curl" ,curl)))
963 (native-inputs
964 `(("pkg-config" ,pkg-config)))
965 (arguments
966 `(#:make-flags '("CC=gcc")
967 #:phases
968 (modify-phases %standard-phases
969 (delete 'configure)
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
973 (lambda _
974 (substitute* "Makefile"
975 (("^gitrev :=.*$")
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
979 ;; instead.
980 (replace 'install
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")))))
988 (replace 'check
989 (lambda* (#:key make-flags #:allow-other-keys)
990 (and
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+))))
1005
1006 (define-public sqlite
1007 (package
1008 (name "sqlite")
1009 (version "3.21.0")
1010 (source (origin
1011 (method url-fetch)
1012 (uri (let ((numeric-version
1013 (match (string-split version #\.)
1014 ((first-digit other-digits ...)
1015 (string-append first-digit
1016 (string-pad-right
1017 (string-concatenate
1018 (map (cut string-pad <> 2 #\0)
1019 other-digits))
1020 6 #\0))))))
1021 (string-append "https://sqlite.org/2017/sqlite-autoconf-"
1022 numeric-version ".tar.gz")))
1023 (sha256
1024 (base32
1025 "1qxvzdjwzw6k0kqjfabj86rnq87xdbwbca7laxxdhnh0fmkm3pfp"))))
1026 (build-system gnu-build-system)
1027 (inputs `(("readline" ,readline)))
1028 (arguments
1029 `(#:configure-flags
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")
1038 (description
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)))
1044
1045 ;; This is used by Tracker.
1046 (define-public sqlite-with-fts5
1047 (package (inherit sqlite)
1048 (name "sqlite-with-fts5")
1049 (arguments
1050 (substitute-keyword-arguments (package-arguments sqlite)
1051 ((#:configure-flags flags)
1052 `(cons "--enable-fts5" ,flags))))))
1053
1054 ;; This is used by Clementine.
1055 (define-public sqlite-with-fts3
1056 (package (inherit sqlite)
1057 (name "sqlite-with-fts3")
1058 (arguments
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")))))))
1067
1068 (define-public tdb
1069 (package
1070 (name "tdb")
1071 (version "1.3.15")
1072 (source (origin
1073 (method url-fetch)
1074 (uri (string-append "https://www.samba.org/ftp/tdb/tdb-"
1075 version ".tar.gz"))
1076 (sha256
1077 (base32
1078 "0a37jhpij8wr4f4pjqdlwnffy2l6a2vkqdpz1bqxj6v06cwbz8dl"))))
1079 (build-system gnu-build-system)
1080 (arguments
1081 '(#:phases
1082 (modify-phases %standard-phases
1083 (replace 'configure
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)))))))))
1090 (native-inputs
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")
1098 (description
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
1102 extremely small.")
1103 (license license:lgpl3+)))
1104
1105 (define-public perl-dbi
1106 (package
1107 (name "perl-dbi")
1108 (version "1.637")
1109 (source (origin
1110 (method url-fetch)
1111 (uri (string-append
1112 "mirror://cpan/authors/id/T/TI/TIMB/DBI-"
1113 version ".tar.gz"))
1114 (sha256
1115 (base32
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)))
1122
1123 (define-public perl-dbix-class
1124 (package
1125 (name "perl-dbix-class")
1126 (version "0.082840")
1127 (source
1128 (origin
1129 (method url-fetch)
1130 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
1131 "DBIx-Class-" version ".tar.gz"))
1132 (sha256
1133 (base32
1134 "1vw1f756g8m5hq11nqf5dk2cw2y4mqq91ca5p75fn5g3fp8syja0"))))
1135 (build-system perl-build-system)
1136 (native-inputs
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)))
1144 (propagated-inputs
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)))
1177
1178 (define-public perl-dbix-class-cursor-cached
1179 (package
1180 (name "perl-dbix-class-cursor-cached")
1181 (version "1.001004")
1182 (source
1183 (origin
1184 (method url-fetch)
1185 (uri (string-append "mirror://cpan/authors/id/A/AR/ARCANEZ/"
1186 "DBIx-Class-Cursor-Cached-" version ".tar.gz"))
1187 (sha256
1188 (base32
1189 "09b2jahn2x12qm4f7qm1jzsxbz7qn1czp6a3fnl5l2i3l4r5421p"))))
1190 (build-system perl-build-system)
1191 (native-inputs
1192 `(("perl-cache-cache" ,perl-cache-cache)
1193 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
1194 ("perl-module-install" ,perl-module-install)))
1195 (propagated-inputs
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)))
1203
1204 (define-public perl-dbix-class-introspectablem2m
1205 (package
1206 (name "perl-dbix-class-introspectablem2m")
1207 (version "0.001002")
1208 (source
1209 (origin
1210 (method url-fetch)
1211 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1212 "DBIx-Class-IntrospectableM2M-" version ".tar.gz"))
1213 (sha256
1214 (base32
1215 "1w47rh2241iy5x3a9bqsyd5kdp9sk43dksr99frzv4qn4jsazfn6"))))
1216 (build-system perl-build-system)
1217 (native-inputs
1218 `(("perl-module-install" ,perl-module-install)))
1219 (propagated-inputs
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)))
1230
1231 (define-public perl-dbix-class-schema-loader
1232 (package
1233 (name "perl-dbix-class-schema-loader")
1234 (version "0.07047")
1235 (source
1236 (origin
1237 (method url-fetch)
1238 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1239 "DBIx-Class-Schema-Loader-" version ".tar.gz"))
1240 (sha256
1241 (base32
1242 "06s2q6xj95600sdlfph57spjk2z1gjs4zwq5b7mz7d5izcxgnwb6"))))
1243 (build-system perl-build-system)
1244 (native-inputs
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)))
1259 (propagated-inputs
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)))
1286
1287 (define-public perl-dbd-pg
1288 (package
1289 (name "perl-dbd-pg")
1290 (version "3.7.4")
1291 (source
1292 (origin
1293 (method url-fetch)
1294 (uri (string-append "mirror://cpan/authors/id/T/TU/TURNSTEP/"
1295 "DBD-Pg-" version ".tar.gz"))
1296 (sha256
1297 (base32
1298 "0gkqlvbmzbdm0g4k328nlkjdg3wrjm5i2n9jxj1i8sqxkm79rylz"))))
1299 (build-system perl-build-system)
1300 (native-inputs
1301 `(("perl-dbi" ,perl-dbi)))
1302 (propagated-inputs
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)))
1310
1311 (define-public perl-dbd-mysql
1312 (package
1313 (name "perl-dbd-mysql")
1314 (version "4.043")
1315 (source
1316 (origin
1317 (method url-fetch)
1318 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1319 "DBD-mysql-" version ".tar.gz"))
1320 (sha256
1321 (base32
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))
1327 (propagated-inputs
1328 `(("perl-dbi" ,perl-dbi)
1329 ("mysql" ,mysql)))
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)))
1335
1336 (define-public perl-dbd-sqlite
1337 (package
1338 (name "perl-dbd-sqlite")
1339 (version "1.54")
1340 (source (origin
1341 (method url-fetch)
1342 (uri (string-append
1343 "mirror://cpan/authors/id/I/IS/ISHIGAKI/DBD-SQLite-"
1344 version ".tar.gz"))
1345 (sha256
1346 (base32
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")))
1358
1359 (define-public perl-sql-abstract
1360 (package
1361 (name "perl-sql-abstract")
1362 (version "1.85")
1363 (source
1364 (origin
1365 (method url-fetch)
1366 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
1367 "SQL-Abstract-" version ".tar.gz"))
1368 (sha256
1369 (base32
1370 "1aycggrvppy2zgkwwn85jkdz93n5gsx4dambrjk67k5067hayi4z"))))
1371 (build-system perl-build-system)
1372 (native-inputs
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)))
1377 (propagated-inputs
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)))
1391
1392 (define-public perl-sql-splitstatement
1393 (package
1394 (name "perl-sql-splitstatement")
1395 (version "1.00020")
1396 (source
1397 (origin
1398 (method url-fetch)
1399 (uri (string-append "mirror://cpan/authors/id/E/EM/EMAZEP/"
1400 "SQL-SplitStatement-" version ".tar.gz"))
1401 (sha256
1402 (base32
1403 "0bqg45k4c9qkb2ypynlwhpvzsl4ssfagmsalys18s5c79ps30z7p"))))
1404 (build-system perl-build-system)
1405 (native-inputs
1406 `(("perl-test-exception" ,perl-test-exception)))
1407 (propagated-inputs
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)))
1417
1418 (define-public perl-sql-tokenizer
1419 (package
1420 (name "perl-sql-tokenizer")
1421 (version "0.24")
1422 (source
1423 (origin
1424 (method url-fetch)
1425 (uri (string-append "mirror://cpan/authors/id/I/IZ/IZUT/"
1426 "SQL-Tokenizer-" version ".tar.gz"))
1427 (sha256
1428 (base32
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
1435 valid SQL query.")
1436 (license license:perl-license)))
1437
1438 (define-public unixodbc
1439 (package
1440 (name "unixodbc")
1441 (version "2.3.4")
1442 (source (origin
1443 (method url-fetch)
1444 (uri
1445 (string-append
1446 "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-"
1447 version ".tar.gz"))
1448 (sha256
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
1454 Driver.")
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")))
1458
1459 (define-public unqlite
1460 (package
1461 (name "unqlite")
1462 (version "1.1.6")
1463 (source (origin
1464 (method url-fetch)
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/"
1468 "download/v1.0.0/"
1469 "unqlite-unofficial-" version ".tar.gz"))
1470 (sha256
1471 (base32
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")
1477 (description
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)))
1484
1485 (define-public redis
1486 (package
1487 (name "redis")
1488 (version "4.0.2")
1489 (source (origin
1490 (method url-fetch)
1491 (uri (string-append "http://download.redis.io/releases/redis-"
1492 version".tar.gz"))
1493 (sha256
1494 (base32
1495 "04s8cgvwjj1979s3hg8zkwc9pyn3jkjpz5zidp87kfcipifr385i"))))
1496 (build-system gnu-build-system)
1497 (arguments
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"
1502 "MALLOC=libc"
1503 "LDFLAGS=-ldl"
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)))
1512
1513 (define-public kyotocabinet
1514 (package
1515 (name "kyotocabinet")
1516 (version "1.2.76")
1517 (source (origin
1518 (method url-fetch)
1519 (uri (string-append "http://fallabs.com/kyotocabinet/pkg/"
1520 name "-" version ".tar.gz"))
1521 (sha256
1522 (base32
1523 "0g6js20x7vnpq4p8ghbw3mh9wpqksya9vwhzdx6dnlf354zjsal1"))))
1524 (build-system gnu-build-system)
1525 (arguments
1526 `(#:configure-flags
1527 (list
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/")
1533 (synopsis
1534 "Kyoto Cabinet is a modern implementation of the DBM database")
1535 (description
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+)))
1540
1541 (define-public tokyocabinet
1542 (package
1543 (name "tokyocabinet")
1544 (version "1.4.48")
1545 (source
1546 (origin
1547 (method url-fetch)
1548 (uri (string-append "http://fallabs.com/tokyocabinet/"
1549 name "-" version ".tar.gz"))
1550 (sha256
1551 (base32
1552 "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0"))))
1553 (build-system gnu-build-system)
1554 (arguments
1555 `(#:configure-flags
1556 (list "--enable-pthread" "--enable-off64" "--enable-fastest"
1557 (string-append "LDFLAGS=-Wl,-rpath="
1558 (assoc-ref %outputs "out") "/lib"))))
1559 (inputs
1560 `(("zlib" ,zlib)))
1561 (home-page "http://fallabs.com/tokyocabinet/")
1562 (synopsis "Tokyo Cabinet is a modern implementation of the DBM database")
1563 (description
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+)))
1571
1572 (define-public wiredtiger
1573 (package
1574 (name "wiredtiger")
1575 (version "2.9.1")
1576 (source (origin
1577 (method url-fetch)
1578 (uri (string-append
1579 "http://source.wiredtiger.com/releases/wiredtiger-"
1580 version ".tar.bz2"))
1581 (sha256
1582 (base32
1583 "0krwnb2zfbhvjaskwl875qzd3y626s84zcciq2mxr5c5riw3yh6s"))))
1584 (build-system gnu-build-system)
1585 (arguments
1586 '(#:configure-flags '("--enable-lz4" "--with-builtins=snappy,zlib")
1587 #:phases
1588 (modify-phases %standard-phases
1589 (add-before 'check 'disable-test/fops
1590 (lambda _
1591 ;; XXX: timed out after 3600 seconds of silence
1592 (substitute* "Makefile"
1593 (("test/fops") ""))
1594 #t)))))
1595 (inputs
1596 `(("lz4" ,lz4)
1597 ("zlib" ,zlib)
1598 ("snappy" ,snappy)))
1599 (home-page "http://source.wiredtiger.com/")
1600 (synopsis "NoSQL data engine")
1601 (description
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"))))
1610
1611 (define-public guile-wiredtiger
1612 (package
1613 (name "guile-wiredtiger")
1614 (version "0.6.3")
1615 (source (origin
1616 (method git-fetch)
1617 (uri (git-reference
1618 (url "https://framagit.org/a-guile-mind/guile-wiredtiger.git")
1619 (commit "070ed68139d99c279f058a6c293f00292d35dbd7")))
1620 (file-name (string-append name "-" version "-checkout"))
1621 (sha256
1622 (base32
1623 "14rna97wsylajzxfif95wnblq85csgcfc666gh5dl0ssgd7x8llh"))))
1624 (build-system gnu-build-system)
1625 (arguments
1626 '(#:parallel-tests? #f ;; tests can't be run in parallel, yet.
1627 #:configure-flags
1628 (list (string-append "--with-libwiredtiger-prefix="
1629 (assoc-ref %build-inputs "wiredtiger")))
1630 #:make-flags '("GUILE_AUTO_COMPILE=0")
1631 #:phases
1632 (modify-phases %standard-phases
1633 (add-after 'unpack 'bootstrap
1634 (lambda _
1635 (invoke "sh" "bootstrap"))))))
1636 ;; TODO: Remove microkanren.scm when we have a separate package
1637 ;; for it.
1638 (native-inputs
1639 `(("autoconf" ,autoconf)
1640 ("automake" ,automake)
1641 ("pkg-config" ,pkg-config)))
1642 (inputs
1643 `(("wiredtiger" ,wiredtiger)
1644 ("guile" ,guile-2.2)))
1645 (propagated-inputs
1646 `(("guile-lib" ,guile-lib))) ;for (htmlprag)
1647 (synopsis "WiredTiger bindings for GNU Guile")
1648 (description
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+)))
1653
1654 (define-public perl-db-file
1655 (package
1656 (name "perl-db-file")
1657 (version "1.840")
1658 (source
1659 (origin
1660 (method url-fetch)
1661 (uri (string-append
1662 "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
1663 version
1664 ".tar.gz"))
1665 (sha256
1666 (base32
1667 "1i5jz85z4hpx15lw6ix27pyvrf0ziyh4z33lii4d3wnhz83lg1mp"))))
1668 (build-system perl-build-system)
1669 (inputs `(("bdb" ,bdb)))
1670 (native-inputs `(("perl-test-pod" ,perl-test-pod)))
1671 (arguments
1672 `(#:phases (modify-phases %standard-phases
1673 (add-before
1674 'configure 'modify-config.in
1675 (lambda* (#:key inputs #:allow-other-keys)
1676 (substitute* "config.in"
1677 (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
1678 #t)))))
1679 (home-page "http://search.cpan.org/dist/DB_File")
1680 (synopsis
1681 "Perl5 access to Berkeley DB version 1.x")
1682 (description
1683 "The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
1684 (license license:perl-license)))
1685
1686 (define-public lmdb
1687 (package
1688 (name "lmdb")
1689 (version "0.9.21")
1690 (source (origin
1691 (method url-fetch)
1692 (uri (string-append "https://github.com/LMDB/lmdb/archive/"
1693 "LMDB_" version ".tar.gz"))
1694 (sha256
1695 (base32
1696 "0ndmj07hkm2ic60z1f4rdscxs7pq45hk9fibjyv5nhfclhsvd1qi"))))
1697 (build-system gnu-build-system)
1698 (arguments
1699 `(#:test-target "test"
1700 #:phases
1701 (modify-phases %standard-phases
1702 (replace 'configure
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")))
1708 #t)))))
1709 (home-page "https://symas.com/products/lightning-memory-mapped-database")
1710 (synopsis "Lightning Memory-Mapped Database library")
1711 (description
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
1716 simple.
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)))
1722
1723 (define-public libpqxx
1724 (package
1725 (name "libpqxx")
1726 (version "4.0.1")
1727 (source (origin
1728 (method url-fetch)
1729 (uri (string-append
1730 "http://pqxx.org/download/software/libpqxx/"
1731 name "-" version ".tar.gz"))
1732 (sha256
1733 (base32
1734 "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09"))))
1735 (build-system gnu-build-system)
1736 (native-inputs
1737 `(("python" ,python-2)))
1738 (inputs `(("postgresql" ,postgresql)))
1739 (arguments
1740 `(#:tests? #f ; # FAIL: 1
1741 #:phases
1742 (modify-phases %standard-phases
1743 (add-before 'configure 'fix-sed-command
1744 (lambda _
1745 ;; Newer sed versions error out if double brackets are not used.
1746 (substitute* "configure"
1747 (("\\[:space:\\]") "[[:space:]]"))
1748 #t)))))
1749 (synopsis "C++ connector for PostgreSQL")
1750 (description
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)))
1756
1757 (define-public python-peewee
1758 (package
1759 (name "python-peewee")
1760 (version "2.10.2")
1761 (source
1762 (origin
1763 (method url-fetch)
1764 (uri (pypi-uri "peewee" version))
1765 (sha256
1766 (base32
1767 "10f2mrd5hw6rjklrzaix2lsxlgc8vx3xak54arcy6yd791zhchi3"))))
1768 (build-system python-build-system)
1769 (arguments
1770 `(#:tests? #f)) ; Fails to import test data
1771 (native-inputs
1772 `(("python-cython" ,python-cython)))
1773 (home-page "https://github.com/coleifer/peewee/")
1774 (synopsis "Small object-relational mapping utility")
1775 (description
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)))
1782
1783 (define-public python2-peewee
1784 (package-with-python2 python-peewee))
1785
1786 (define-public sqlcipher
1787 (package
1788 (name "sqlcipher")
1789 (version "3.3.1")
1790 (source
1791 (origin
1792 (method url-fetch)
1793 (uri (string-append "https://github.com/sqlcipher/" name
1794 "/archive/v" version ".tar.gz"))
1795 (sha256
1796 (base32 "1gv58dlbpzrmznly52yqbxgvii0ib88zr3aszla1bsypwjr6flff"))
1797 (file-name (string-append name "-" version ".tar.gz"))))
1798 (build-system gnu-build-system)
1799 (inputs
1800 `(("libcrypto" ,openssl)
1801 ("libtcl8.6" ,tcl))) ; required for running the tests
1802 (native-inputs
1803 `(("tcl" ,tcl)))
1804 (arguments
1805 '(#:configure-flags
1806 '("--enable-tempstore=yes"
1807 "CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_ENABLE_FTS3"
1808 "LDFLAGS=-lcrypto -ltcl8.6"
1809 "--disable-tcl")
1810 ;; tests cannot be run from the Makefile
1811 ;; see: <https://github.com/sqlcipher/sqlcipher/issues/172>
1812 #:test-target "testfixture"
1813 #:phases
1814 (modify-phases %standard-phases
1815 (add-before 'check 'build-test-runner
1816 (assoc-ref %standard-phases 'check))
1817 (replace 'check
1818 (lambda _
1819 (zero?
1820 (system* "./testfixture" "test/crypto.test")))))))
1821 (home-page "https://www.zetetic.net/sqlcipher/")
1822 (synopsis
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
1828 development.")
1829 ;; The source files
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))))
1835
1836 (define-public python-pyodbc-c
1837 (package
1838 (name "python-pyodbc-c")
1839 (version "3.1.4")
1840 (source
1841 (origin
1842 (method url-fetch)
1843 (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
1844 "archive.tar.gz?ref=v" version))
1845 (sha256
1846 (base32
1847 "05aq2297k779xidmxcwkrrxjvj1bh2q7d9a1rcjv6zr15y764ga9"))
1848 (file-name (string-append name "-" version ".tar.gz"))))
1849 (build-system python-build-system)
1850 (inputs
1851 `(("unixodbc" ,unixodbc)))
1852 (arguments
1853 `(;; No unit tests exist.
1854 #:tests? #f))
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
1858 for ODBC.")
1859 (license (license:x11-style "file://LICENSE.TXT"))))
1860
1861 (define-public python2-pyodbc-c
1862 (package-with-python2 python-pyodbc-c))
1863
1864 (define-public python-pyodbc
1865 (package
1866 (name "python-pyodbc")
1867 (version "4.0.21")
1868 (source
1869 (origin
1870 (method url-fetch)
1871 (uri (pypi-uri "pyodbc" version))
1872 (sha256
1873 (base32
1874 "0a83zwz3h1agshnsc6r7al6q83222w8601gpzzzjvjz5m56ghmcn"))
1875 (file-name (string-append name "-" version ".tar.gz"))))
1876 (build-system python-build-system)
1877 (inputs
1878 `(("unixodbc" ,unixodbc)))
1879 (arguments
1880 `(;; No unit tests exist.
1881 #:tests? #f))
1882 (home-page "https://github.com/mkleehammer/pyodbc")
1883 (synopsis "Python ODBC Library")
1884 (description "@code{python-pyodbc} provides a Python DB-API driver
1885 for ODBC.")
1886 (license (license:x11-style "file:///LICENSE.TXT"))))
1887
1888 (define-public python2-pyodbc
1889 (package-with-python2 python-pyodbc))
1890
1891 (define-public mdbtools
1892 (package
1893 (name "mdbtools")
1894 (version "0.7.1")
1895 (source
1896 (origin
1897 (method url-fetch)
1898 (uri (string-append "https://github.com/brianb/mdbtools/archive/"
1899 version ".tar.gz"))
1900 (sha256
1901 (base32
1902 "05hbmxcq173kzb899gdi3bz2qcc1vi3n1qbbkwpsvrq7ggf11wyw"))
1903 (file-name (string-append name "-" version ".tar.gz"))))
1904 (build-system gnu-build-system)
1905 (inputs
1906 `(("glib" ,glib)))
1907 (native-inputs
1908 `(("autoconf" ,autoconf)
1909 ("automake" ,automake)
1910 ("libtool" ,libtool)
1911 ("pkg-config" ,pkg-config)
1912 ("txt2man" ,txt2man)
1913 ("which" ,which)))
1914 (arguments
1915 `(#:phases
1916 (modify-phases %standard-phases
1917 (add-after 'unpack 'autoreconf
1918 (lambda _
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
1928 license:gpl2+))))
1929
1930 (define-public python-lmdb
1931 (package
1932 (name "python-lmdb")
1933 (version "0.93")
1934 (source (origin
1935 (method url-fetch)
1936 (uri (pypi-uri "lmdb" version))
1937 (sha256
1938 (base32
1939 "0xdpb298fyl68acadbwv5801wcwfpnhc7sm4bnrq1x4bd5dhhsql"))
1940 (modules '((guix build utils)))
1941 (snippet
1942 ;; Delete bundled lmdb source files.
1943 '(for-each delete-file (list "lib/lmdb.h"
1944 "lib/mdb.c"
1945 "lib/midl.c"
1946 "lib/midl.h")))))
1947 (build-system python-build-system)
1948 (inputs
1949 `(("lmdb" ,lmdb)))
1950 (arguments
1951 `(#:phases
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"))
1959 #t))))
1960 ;; Tests fail with: ‘lmdb.tool: Please specify environment (--env)’.
1961 #:tests? #f))
1962 (home-page "https://github.com/dw/py-lmdb")
1963 (synopsis "Python binding for the ‘Lightning’ database (LMDB)")
1964 (description
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.")
1967 (license
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.
1971 license:bsd-3))))
1972
1973 (define-public python2-lmdb
1974 (package-with-python2 python-lmdb))
1975
1976 (define-public python-orator
1977 (package
1978 (name "python-orator")
1979 (version "0.9.7")
1980 (source (origin
1981 (method url-fetch)
1982 (uri (pypi-uri "orator" version))
1983 (sha256
1984 (base32
1985 "14r58z64fdp76ixnvmi4lni762b405ynmsx6chr1qihs3yl9zn6c"))))
1986 (build-system python-build-system)
1987 (arguments
1988 `(#:phases
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.
1993 (lambda _
1994 (substitute* "setup.py"
1995 ((",<.*'") "'")
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'"))
2000 #t)))))
2001 (native-inputs
2002 `(("python-pytest-mock" ,python-pytest-mock)
2003 ("python-pytest" ,python-pytest)
2004 ("python-flexmock" ,python-flexmock)))
2005 (propagated-inputs
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")
2020 (description
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))))))
2025
2026 (define-public python2-orator
2027 (package-with-python2 (strip-python2-variant python-orator)))
2028
2029 (define-public virtuoso-ose
2030 (package
2031 (name "virtuoso-ose")
2032 (version "7.2.4.2")
2033 (source
2034 (origin
2035 (method url-fetch)
2036 (uri (string-append
2037 "https://github.com/openlink/virtuoso-opensource/releases/"
2038 "download/v" version "/virtuoso-opensource-" version ".tar.gz"))
2039 (sha256
2040 (base32 "12dqam1gc1v93l0bj0vlpvjqppki6y1hqrlznywxnw0rrz9pb002"))))
2041 (build-system gnu-build-system)
2042 (arguments
2043 `(#:tests? #f)) ; Tests require a network connection.
2044 (inputs
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)))
2055
2056 (define-public r-rmysql
2057 (package
2058 (name "r-rmysql")
2059 (version "0.10.14")
2060 (source
2061 (origin
2062 (method url-fetch)
2063 (uri (cran-uri "RMySQL" version))
2064 (sha256
2065 (base32
2066 "01891kn263b02y6addgpy3gn5axg7m10bqbqv7dg9yx9k85am590"))))
2067 (properties `((upstream-name . "RMySQL")))
2068 (build-system r-build-system)
2069 (native-inputs
2070 `(("pkg-config" ,pkg-config)))
2071 (inputs
2072 `(("mariadb" ,mariadb)
2073 ("zlib" ,zlib)))
2074 (propagated-inputs
2075 `(("r-dbi" ,r-dbi)))
2076 (home-page "https://github.com/r-dbi/RMySQL")
2077 (synopsis "Database interface and MySQL driver for R")
2078 (description
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)))
2084
2085 (define-public python-ccm
2086 (package
2087 (name "python-ccm")
2088 (version "2.1.6")
2089 (source
2090 (origin
2091 (method url-fetch)
2092 (uri (pypi-uri "ccm" version))
2093 (sha256
2094 (base32
2095 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
2096 (build-system python-build-system)
2097 (propagated-inputs
2098 `(("python-pyyaml" ,python-pyyaml)
2099 ;; Not listed in setup.py, but used in ccmlib/node.py for full
2100 ;; functionality
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
2105 localhost")
2106 (description "Cassandra Cluster Manager is a development tool for testing
2107 local Cassandra clusters. It creates, launches and removes Cassandra clusters
2108 on localhost.")
2109 (license license:asl2.0)))
2110
2111 (define-public python2-ccm
2112 (package-with-python2 python-ccm))
2113
2114 (define-public python2-pysqlite
2115 (package
2116 (name "python2-pysqlite")
2117 (version "2.8.3")
2118 (source
2119 (origin
2120 (method url-fetch)
2121 (uri (pypi-uri "pysqlite" version))
2122 (sha256
2123 (base32
2124 "1424gwq9sil2ffmnizk60q36vydkv8rxs6m7xs987kz8cdc37lqp"))))
2125 (build-system python-build-system)
2126 (inputs
2127 `(("sqlite" ,sqlite)))
2128 (arguments
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")
2133 (description
2134 "Pysqlite provides SQLite bindings for Python that comply to the
2135 Database API 2.0T.")
2136 (license license:zlib)))
2137
2138 (define-public python-sqlalchemy
2139 (package
2140 (name "python-sqlalchemy")
2141 (version "1.0.12")
2142 (source
2143 (origin
2144 (method url-fetch)
2145 (uri (string-append "https://pypi.python.org/packages/source/S/"
2146 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
2147 (sha256
2148 (base32
2149 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
2150 (build-system python-build-system)
2151 (native-inputs
2152 `(("python-cython" ,python-cython) ;for c extensions
2153 ("python-pytest" ,python-pytest)
2154 ("python-mock" ,python-mock))) ;for tests
2155 (arguments
2156 `(#:phases
2157 (modify-phases %standard-phases
2158 (replace 'check
2159 (lambda _ (zero? (system* "py.test")))))))
2160 (home-page "http://www.sqlalchemy.org")
2161 (synopsis "Database abstraction library")
2162 (description
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)))
2169
2170 (define-public python2-sqlalchemy
2171 (package-with-python2 python-sqlalchemy))
2172
2173 (define-public python-sqlalchemy-utils
2174 (package
2175 (name "python-sqlalchemy-utils")
2176 (version "0.32.21")
2177 (source
2178 (origin
2179 (method url-fetch)
2180 (uri (pypi-uri "SQLAlchemy-Utils" version))
2181 (sha256
2182 (base32
2183 "1myn71dn8j74xglyh46f12sh8ywb7j0j732rzwq70kvwwnq32m73"))))
2184 (build-system python-build-system)
2185 (arguments
2186 '(#:tests? #f)) ; FIXME: Many tests require a running database server.
2187 ;; #:phases
2188 ;; (modify-phases %standard-phases
2189 ;; (replace 'check
2190 ;; (lambda _
2191 ;; (zero? (system* "py.test" "sqlalchemy_utils" "tests")))))
2192 (propagated-inputs
2193 `(("python-six" ,python-six)
2194 ("python-sqlalchemy" ,python-sqlalchemy)))
2195 (native-inputs
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")
2203 (description
2204 "SQLAlchemy-utils provides various utility functions and custom data types
2205 for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
2206
2207 You might also want to install the following optional dependencies:
2208 @enumerate
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}
2216 @end enumerate
2217 ")
2218 (license license:bsd-3)))
2219
2220 (define-public python2-sqlalchemy-utils
2221 (package-with-python2 python-sqlalchemy-utils))
2222
2223 (define-public python-alembic
2224 (package
2225 (name "python-alembic")
2226 (version "0.9.6")
2227 (source
2228 (origin
2229 (method url-fetch)
2230 (uri (pypi-uri "alembic" version))
2231 (sha256
2232 (base32
2233 "0cm73vabrqj92v7a0wwvldj8j7bc7dwv358kvkk7p87gx7mm2a04"))))
2234 (build-system python-build-system)
2235 (native-inputs
2236 `(("python-mock" ,python-mock)
2237 ("python-pytest-cov" ,python-pytest-cov)))
2238 (propagated-inputs
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")
2244 (synopsis
2245 "Database migration tool for SQLAlchemy")
2246 (description
2247 "Alembic is a lightweight database migration tool for usage with the
2248 SQLAlchemy Database Toolkit for Python.")
2249 (license license:expat)))
2250
2251 (define-public python2-alembic
2252 (package-with-python2 python-alembic))
2253
2254 (define-public python-pickleshare
2255 (package
2256 (name "python-pickleshare")
2257 (version "0.7.4")
2258 (source
2259 (origin
2260 (method url-fetch)
2261 (uri (pypi-uri "pickleshare" version))
2262 (sha256
2263 (base32 "0yvk14dzxk7g6qpr7iw23vzqbsr0dh4ij4xynkhnzpfz4xr2bac4"))))
2264 (build-system python-build-system)
2265 (arguments
2266 `(#:phases (modify-phases %standard-phases
2267 (replace 'check
2268 (lambda _
2269 (invoke "pytest"))))))
2270 (native-inputs
2271 `(("python-pytest" ,python-pytest)))
2272 (home-page "https://github.com/vivainio/pickleshare")
2273 (synopsis "Tiny key value database with concurrency support")
2274 (description
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
2281 PickleShare.")
2282 (properties `((python2-variant . ,(delay python2-pickleshare))))
2283 (license license:expat)))
2284
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))))))
2291
2292 (define-public python-apsw
2293 (package
2294 (name "python-apsw")
2295 (version "3.20.1-r1")
2296 (source
2297 (origin
2298 (method url-fetch)
2299 (uri (string-append "https://github.com/rogerbinns/apsw/archive/"
2300 version ".tar.gz"))
2301 (file-name (string-append "apsw-" version ".tar.gz"))
2302 (sha256
2303 (base32
2304 "00ai7m2pqi26qaflhz314d8k5i3syw7xzr145fhfl0crhyh6adz2"))))
2305 (build-system python-build-system)
2306 (inputs
2307 `(("sqlite" ,sqlite)))
2308 (arguments
2309 `(#:phases
2310 (modify-phases %standard-phases
2311 (replace 'build
2312 (lambda _
2313 (invoke "python" "setup.py" "build" "--enable-all-extensions")
2314 #t))
2315 (add-after 'build 'build-test-helper
2316 (lambda _
2317 (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
2318 "-I." "-Isqlite3" "src/testextension.c")
2319 #t))
2320 (delete 'check)
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")
2325 #t)))))
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)))
2333
2334 (define-public python2-apsw
2335 (package-with-python2 python-apsw))
2336
2337 (define-public python2-neo4j-driver
2338 (package
2339 (name "python2-neo4j-driver")
2340 ;; NOTE: When upgrading to 1.5.0, please add a python3 variant.
2341 (version "1.4.0")
2342 (source (origin
2343 (method url-fetch)
2344 (uri (pypi-uri "neo4j-driver" version))
2345 (sha256
2346 (base32
2347 "011r1vh182p8mm83d8dz9rfnc3l7rf7fd00cyrbyfzi71jmc4g98"))))
2348 (build-system python-build-system)
2349 (arguments
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)))
2357
2358 (define-public python2-py2neo
2359 (package
2360 (name "python2-py2neo")
2361 (version "3.1.2")
2362 (source (origin
2363 (method url-fetch)
2364 (uri (pypi-uri "py2neo" version))
2365 (sha256
2366 (base32
2367 "1f1q95vqcvlc3nsc33p841swnjdcjazddlq2dzi3qfnjqjrajxw1"))))
2368 (build-system python-build-system)
2369 (arguments
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)))
2378
2379 (define-public python-psycopg2
2380 (package
2381 (name "python-psycopg2")
2382 (version "2.7.3.1")
2383 (source
2384 (origin
2385 (method url-fetch)
2386 (uri (pypi-uri "psycopg2" version))
2387 (sha256
2388 (base32
2389 "0rda1j02ds6s28752fhmpwg761sh6jsxi1gpczqkrd28cki1cywv"))))
2390 (build-system python-build-system)
2391 (arguments
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.
2395 (inputs
2396 `(("postgresql" ,postgresql))) ; libpq
2397 (home-page "http://initd.org/psycopg/")
2398 (synopsis "Python PostgreSQL adapter")
2399 (description
2400 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
2401 (license license:lgpl3+)))
2402
2403 (define-public python2-psycopg2
2404 (package-with-python2 python-psycopg2))
2405
2406 (define-public python-sadisplay
2407 (package
2408 (name "python-sadisplay")
2409 (version "0.4.8")
2410 (source
2411 (origin
2412 (method url-fetch)
2413 (uri (pypi-uri "sadisplay" version))
2414 (sha256
2415 (base32
2416 "01d9lxhmgpb68gy8rd6zj6fcwp84n2qq210n1qsk3qbsir79bzh4"))))
2417 (build-system python-build-system)
2418 (propagated-inputs
2419 `(("python-sqlalchemy" ,python-sqlalchemy)))
2420 (native-inputs
2421 ;; For tests.
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
2427 database).")
2428 (license license:bsd-3)))
2429
2430 (define-public python2-sadisplay
2431 (package-with-python2 python-sadisplay))
2432
2433 (define-public python-mysqlclient
2434 (package
2435 (name "python-mysqlclient")
2436 (version "1.3.10")
2437 (source
2438 (origin
2439 (method url-fetch)
2440 (uri (pypi-uri "mysqlclient" version))
2441 (sha256
2442 (base32
2443 "0qkj570x4rbsblji6frvsvp2v1ap32dqzj1lq62zp9515ffsyaj5"))))
2444 (build-system python-build-system)
2445 (native-inputs
2446 `(("mariadb" ,mariadb)
2447 ("nose" ,python-nose)
2448 ("mock" ,python-mock)
2449 ("py.test" ,python-pytest)))
2450 (inputs
2451 `(("mysql" ,mysql)
2452 ("libz" ,zlib)
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:
2458 @enumerate
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).
2462 @end enumerate")
2463 (license license:gpl2)))
2464
2465 (define-public python2-mysqlclient
2466 (package-with-python2 python-mysqlclient))
2467
2468 (define-public python-hiredis
2469 (package
2470 (name "python-hiredis")
2471 (version "0.2.0")
2472 (source
2473 (origin
2474 (method url-fetch)
2475 (uri (pypi-uri "hiredis" version))
2476 (sha256
2477 (base32
2478 "1dfm2k9l9zar9nw9fwmm74zrgraxdxs04vx9li56fjcf289qx5fa"))))
2479 (build-system python-build-system)
2480 (arguments
2481 ;; no tests
2482 `(#:tests? #f))
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)))
2488
2489 (define-public python2-hiredis
2490 (package-with-python2 python-hiredis))
2491
2492 (define-public python-fakeredis
2493 (package
2494 (name "python-fakeredis")
2495 (version "0.8.2")
2496 (source
2497 (origin
2498 (method url-fetch)
2499 (uri (pypi-uri "fakeredis" version))
2500 (sha256
2501 (base32
2502 "0zncahj3byyasyfx9i7k991ph0n0lq8v3a21pqri5qxn9564bk9r"))))
2503 (build-system python-build-system)
2504 (arguments
2505 ;; no tests
2506 `(#:tests? #f))
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)))
2516
2517 (define-public python2-fakeredis
2518 (package-with-python2 python-fakeredis))
2519
2520 (define-public python-redis
2521 (package
2522 (name "python-redis")
2523 (version "2.10.6")
2524 (source
2525 (origin
2526 (method url-fetch)
2527 (uri (pypi-uri "redis" version))
2528 (sha256
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 :-)
2534 ;;(native-inputs
2535 ;; `(("python-pytest" ,python-pytest)))
2536 (home-page "https://github.com/andymccurdy/redis-py")
2537 (synopsis "Redis Python client")
2538 (description
2539 "This package provides a Python interface to the Redis key-value store.")
2540 (license license:expat)))
2541
2542 (define-public python2-redis
2543 (package-with-python2 python-redis))
2544
2545 (define-public python-rq
2546 (package
2547 (name "python-rq")
2548 (version "0.7.1")
2549 (source
2550 (origin
2551 (method url-fetch)
2552 (uri (pypi-uri "rq" version))
2553 (sha256
2554 (base32 "0gaq5pnh0zy46r8jvygi0ifbvz3pq6i7xla78ijcgjw0x77qzsdh"))))
2555 (build-system python-build-system)
2556 (propagated-inputs
2557 `(("python-click" ,python-click)
2558 ("python-redis" ,python-redis)))
2559 (home-page "http://python-rq.org/")
2560 (synopsis "Simple job queues for Python")
2561 (description
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)))
2566
2567 (define-public python2-rq
2568 (package-with-python2 python-rq))
2569
2570 (define-public python-trollius-redis
2571 (package
2572 (name "python-trollius-redis")
2573 (version "0.1.4")
2574 (source
2575 (origin
2576 (method url-fetch)
2577 (uri (pypi-uri "trollius_redis" version))
2578 (sha256
2579 (base32
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
2588 Redis protocol.")
2589 (license license:bsd-2)))
2590
2591 (define-public python2-trollius-redis
2592 (package-with-python2 python-trollius-redis))
2593
2594 (define-public python-sqlparse
2595 (package
2596 (name "python-sqlparse")
2597 (version "0.2.4")
2598 (source (origin
2599 (method url-fetch)
2600 (uri (pypi-uri "sqlparse" version))
2601 (sha256
2602 (base32
2603 "1v3xh0bkfhb262dbndgzhivpnhdwavdzz8jjhx9vx0xbrx2880nf"))))
2604 (build-system python-build-system)
2605 (arguments
2606 `(#:phases
2607 (modify-phases %standard-phases
2608 (replace 'check
2609 (lambda _ (zero? (system* "py.test")))))))
2610 (native-inputs
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)))
2617
2618 (define-public python2-sqlparse
2619 (package-with-python2 python-sqlparse))
2620
2621 (define-public python-sql
2622 (package
2623 (name "python-sql")
2624 (version "0.9")
2625 (source
2626 (origin
2627 (method url-fetch)
2628 (uri (pypi-uri "python-sql" version))
2629 (sha256
2630 (base32
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)))
2638
2639 (define-public python2-sql
2640 (package-with-python2 python-sql))
2641
2642 (define-public mongo-tools
2643 (package
2644 (name "mongo-tools")
2645 (version "3.4.0")
2646 (source
2647 (origin (method git-fetch)
2648 (uri (git-reference
2649 (url "https://github.com/mongodb/mongo-tools")
2650 (commit (string-append "r" version))))
2651 (file-name (git-file-name name version))
2652 (sha256
2653 (base32
2654 "1bcsz5cvj39a7nsxsfqmz9igrw33j6yli9kffigqyscs52amw7x1"))))
2655 (build-system go-build-system)
2656 (arguments
2657 `(#:import-path "github.com/mongodb/mongo-tools"
2658 #:modules ((srfi srfi-1)
2659 (guix build go-build-system)
2660 (guix build utils))
2661 #:phases
2662 (let ((all-tools
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
2668 (lambda _
2669 (delete-file-recursively
2670 "src/github.com/mongodb/mongo-tools/vendor")
2671 #t))
2672 ;; We don't need to install the source code for end-user applications
2673 (delete 'install-source)
2674 (replace 'build
2675 (lambda _
2676 (every (lambda (tool)
2677 (let ((command
2678 `("go" "build"
2679 ;; This is where the tests expect to find the
2680 ;; executables
2681 "-o" ,(string-append
2682 "src/github.com/mongodb/mongo-tools/bin/"
2683 tool)
2684 "-v"
2685 "-tags=\"ssl sasl\""
2686 "-ldflags"
2687 "-extldflags=-Wl,-z,now,-z,relro"
2688 ,(string-append
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)))
2694 all-tools)))
2695 (replace 'check
2696 (lambda _
2697 (with-directory-excursion "src"
2698 (every (lambda (tool)
2699 (invoke
2700 "go" "test" "-v"
2701 (string-append "github.com/mongodb/mongo-tools/" tool)))
2702 all-tools))))
2703 (replace 'install
2704 (lambda* (#:key outputs #:allow-other-keys)
2705 (for-each (lambda (tool)
2706 (install-file
2707 (string-append "src/github.com/mongodb/mongo-tools/bin/" tool)
2708 (string-append (assoc-ref outputs "out")
2709 "/bin")))
2710 all-tools)))))))
2711 (native-inputs
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")
2721 (description
2722 "This package includes a collection of tools related to MongoDB.
2723 @table @code
2724 @item bsondump
2725 Display BSON files in a human-readable format
2726 @item mongoimport
2727 Convert data from JSON, TSV or CSV and insert them into a collection
2728 @item mongoexport
2729 Write an existing collection to CSV or JSON format
2730 @item mongodump/mongorestore
2731 Dump MongoDB backups to disk in the BSON format
2732 @item mongorestore
2733 Read MongoDB backups in the BSON format, and restore them to a live database
2734 @item mongostat
2735 Monitor live MongoDB servers, replica sets, or sharded clusters
2736 @item mongofiles
2737 Read, write, delete, or update files in GridFS
2738 @item mongooplog
2739 Replay oplog entries between MongoDB servers
2740 @item mongotop
2741 Monitor read/write activity on a mongo server
2742 @end table")
2743 (license license:asl2.0)))
2744
2745 (define-public apache-arrow
2746 (package
2747 (name "apache-arrow")
2748 (version "0.7.0")
2749 (source
2750 (origin
2751 (method git-fetch)
2752 (uri (git-reference
2753 (url "https://github.com/apache/arrow")
2754 (commit (string-append "apache-arrow-" version))))
2755 (file-name (git-file-name name version))
2756 (sha256
2757 (base32
2758 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2759 (build-system cmake-build-system)
2760 (arguments
2761 `(#:tests? #f
2762 #:phases
2763 (modify-phases %standard-phases
2764 (add-before 'configure 'enter-source-directory
2765 (lambda _ (chdir "cpp") #t))
2766 (add-after 'unpack 'set-env
2767 (lambda _
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"))
2773 #t)))
2774 #:build-type "Release"
2775 #:configure-flags
2776 (list "-DARROW_PYTHON=ON"
2777
2778 ;; Install to PREFIX/lib (the default is
2779 ;; PREFIX/lib64).
2780 (string-append "-DCMAKE_INSTALL_LIBDIR="
2781 (assoc-ref %outputs "out")
2782 "/lib")
2783
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"
2791
2792 ;; Building the tests forces on all the
2793 ;; optional features and the use of static
2794 ;; libraries.
2795 "-DARROW_BUILD_TESTS=OFF"
2796 "-DARROW_BUILD_STATIC=OFF")))
2797 (inputs
2798 `(("boost" ,boost)
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)))
2815
2816 (define-public python-pyarrow
2817 (package
2818 (name "python-pyarrow")
2819 (version "0.7.0")
2820 (source
2821 (origin
2822 (method git-fetch)
2823 (uri (git-reference
2824 (url "https://github.com/apache/arrow")
2825 (commit (string-append "apache-arrow-" version))))
2826 (file-name (git-file-name name version))
2827 (sha256
2828 (base32
2829 "1x7sdd8lbs3nfqjql1pcgbkjc19bls56zmgjayshkmablvlc4dy3"))))
2830 (build-system python-build-system)
2831 (arguments
2832 '(#:tests? #f ; XXX Test failures related to missing libhdfs, libhdfs3,
2833 ; and "Unsupported numpy type 22".
2834 #:phases
2835 (modify-phases %standard-phases
2836 (add-after 'unpack 'enter-source-directory
2837 (lambda _ (chdir "python") #t))
2838 (add-after 'unpack 'set-env
2839 (lambda _
2840 (setenv "ARROW_HOME" (assoc-ref %build-inputs "apache-arrow"))
2841 #t)))))
2842 (propagated-inputs
2843 `(("apache-arrow" ,apache-arrow)
2844 ("python-numpy" ,python-numpy)
2845 ("python-pandas" ,python-pandas)
2846 ("python-six" ,python-six)))
2847 (native-inputs
2848 `(("cmake" ,cmake)
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)))
2858
2859 (define-public python2-pyarrow
2860 (package-with-python2 python-pyarrow))