1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2012, 2014, 2015 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
5 ;;; Copyright © 2014, 2016 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
8 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
9 ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
12 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
13 ;;; Copyright © 2016 David Craven <david@craven.ch>
14 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
15 ;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
16 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
17 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages databases)
35 #:use-module (gnu packages)
36 #:use-module (gnu packages algebra)
37 #:use-module (gnu packages autotools)
38 #:use-module (gnu packages avahi)
39 #:use-module (gnu packages base)
40 #:use-module (gnu packages bash)
41 #:use-module (gnu packages bison)
42 #:use-module (gnu packages boost)
43 #:use-module (gnu packages check)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages crypto)
46 #:use-module (gnu packages curl)
47 #:use-module (gnu packages cyrus-sasl)
48 #:use-module (gnu packages emacs)
49 #:use-module (gnu packages gettext)
50 #:use-module (gnu packages glib)
51 #:use-module (gnu packages gnupg)
52 #:use-module (gnu packages jemalloc)
53 #:use-module (gnu packages language)
54 #:use-module (gnu packages linux)
55 #:use-module (gnu packages ncurses)
56 #:use-module (gnu packages parallel)
57 #:use-module (gnu packages pcre)
58 #:use-module (gnu packages perl)
59 #:use-module (gnu packages pkg-config)
60 #:use-module (gnu packages popt)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages rdf)
63 #:use-module (gnu packages readline)
64 #:use-module (gnu packages tcl)
65 #:use-module (gnu packages tls)
66 #:use-module (gnu packages xml)
67 #:use-module ((guix licenses) #:prefix license:)
68 #:use-module (guix packages)
69 #:use-module (guix download)
70 #:use-module (guix build-system gnu)
71 #:use-module (guix build-system perl)
72 #:use-module (guix build-system python)
73 #:use-module (guix build-system cmake)
74 #:use-module (guix utils)
75 #:use-module (srfi srfi-26)
76 #:use-module (ice-9 match))
84 (uri (string-append "https://github.com/garlik/4store/archive/v"
86 (file-name (string-append name "-" version ".tar.gz"))
88 (base32 "004fmcf1w75zhc1x3zc6kc97j4jqn2v5nhk6yb3z3cpfrhzi9j50"))
89 (patches (list (search-patch "4store-fix-buildsystem.patch")))))
90 (build-system gnu-build-system)
94 ("autoconf" ,autoconf)
95 ("automake" ,automake)
96 ("gettext" ,gettext-minimal)
98 ("pcre" ,pcre "bin") ;for 'pcre-config'
99 ("pkg-config" ,pkg-config)))
105 ("readline" ,readline)
107 ("cyrus-sasl" ,cyrus-sasl)
109 ("util-linux" ,util-linux)))
112 (modify-phases %standard-phases
113 (add-before 'configure 'generate-configure
115 (zero? (system* "./autogen.sh")))))))
116 ;; http://www.4store.org has been down for a while now.
117 (home-page "https://github.com/garlik/4store")
118 (synopsis "Clustered RDF storage and query engine")
119 (description "4store is a RDF/SPARQL store written in C, supporting
120 either single machines or networked clusters.")
121 (license license:gpl3+)))
129 (uri (string-append "mirror://gnu/gdbm/gdbm-"
133 "1smwz4x5qa4js0zf1w3asq6z7mh20zlgwbh2bk5dczw6xrk22yyr"))))
134 (arguments `(#:configure-flags '("--enable-libgdbm-compat")))
135 (build-system gnu-build-system)
136 (home-page "http://www.gnu.org/software/gdbm/")
138 "Hash library of database functions compatible with traditional dbm")
140 "GDBM is a library for manipulating hashed databases. It is used to
141 store key/value pairs in a file in a manner similar to the Unix dbm library
142 and provides interfaces to the traditional file format.")
143 (license license:gpl3+)))
151 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
155 "1isxx4jfmnh913jzhp8hhfngbk6dsg46f4kjpvvc56maj64jqqa7"))))
156 (build-system gnu-build-system)
157 (outputs '("out" ; programs, libraries, headers
158 "doc")) ; 94 MiB of HTML docs
160 '(#:tests? #f ; no check target available
161 #:disallowed-references ("doc")
165 (lambda* (#:key outputs #:allow-other-keys)
166 (let ((out (assoc-ref outputs "out"))
167 (doc (assoc-ref outputs "doc")))
168 ;; '--docdir' is not honored, so we need to patch.
169 (substitute* "dist/Makefile.in"
170 (("docdir[[:blank:]]*=.*")
171 (string-append "docdir = " doc "/share/doc/bdb")))
174 (system* "./dist/configure"
175 (string-append "--prefix=" out)
176 (string-append "CONFIG_SHELL=" (which "bash"))
177 (string-append "SHELL=" (which "bash"))
179 ;; Remove 7 MiB of .a files.
182 ;; The compatibility mode is needed by some packages,
186 ;; The following flag is needed so that the inclusion
187 ;; of db_cxx.h into C++ files works; it leads to
188 ;; HAVE_CXX_STDHEADERS being defined in db_cxx.h.
191 (synopsis "Berkeley database")
193 "Berkeley DB is an embeddable database allowing developers the choice of
194 SQL, Key/Value, XML/XQuery or Java Object storage for their data model.")
195 ;; Starting with version 6, BDB is distributed under AGPL3. Many individual
196 ;; files are covered by the 3-clause BSD license.
197 (license (list license:agpl3+ license:bsd-3))
199 "http://www.oracle.com/us/products/database/berkeley-db/overview/index.html")))
201 (define-public bdb-5.3
202 (package (inherit bdb)
205 (license (license:non-copyleft "file://LICENSE"
206 "See LICENSE in the distribution."))
209 (uri (string-append "http://download.oracle.com/berkeley-db/db-"
213 "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0"))))
215 `(#:tests? #f ; no check target available
216 #:disallowed-references ("doc")
220 (lambda* (#:key outputs #:allow-other-keys)
221 (let ((out (assoc-ref outputs "out"))
222 (doc (assoc-ref outputs "doc")))
223 ;; '--docdir' is not honored, so we need to patch.
224 (substitute* "dist/Makefile.in"
225 (("docdir[[:blank:]]*=.*")
226 (string-append "docdir = " doc "/share/doc/bdb")))
229 (system* "./dist/configure"
230 (string-append "--prefix=" out)
231 (string-append "CONFIG_SHELL=" (which "bash"))
232 (string-append "SHELL=" (which "bash"))
234 ;; Bdb doesn't recognize aarch64 as an architecture.
235 ,@(if (string=? "aarch64-linux" (%current-system))
236 '("--build=aarch64-unknown-linux-gnu")
239 ;; Remove 7 MiB of .a files.
242 ;; The compatibility mode is needed by some packages,
246 ;; The following flag is needed so that the inclusion
247 ;; of db_cxx.h into C++ files works; it leads to
248 ;; HAVE_CXX_STDHEADERS being defined in db_cxx.h.
250 %standard-phases)))))
252 (define-public leveldb
258 (uri (string-append "https://github.com/google/leveldb"
259 "/archive/v" version ".tar.gz"))
260 (file-name (string-append name "-" version ".tar.gz"))
263 "00jjgs9xlwycfkg0xd7n1rj6v9zrx7xc7hann6zalrjyhap18ykx"))))
264 (build-system gnu-build-system)
266 '(#:make-flags (list "CC=gcc")
268 (modify-phases %standard-phases
271 ;; There is no install target, so we do it here.
272 (lambda* (#:key outputs #:allow-other-keys)
273 (let* ((out (assoc-ref outputs "out"))
274 (lib (string-append out "/lib"))
275 (include (string-append out "/include")))
276 (for-each (lambda (file)
277 (install-file file lib))
278 (find-files "out-shared" "^libleveldb\\.so.*$"))
279 (copy-recursively "include" include)
282 `(("snappy" ,snappy)))
283 (home-page "http://leveldb.org/")
284 (synopsis "Fast key-value storage library")
286 "LevelDB is a fast key-value storage library that provides an ordered
287 mapping from string keys to string values.")
288 (license license:bsd-3)))
296 (uri (list (string-append
297 "http://dev.mysql.com/get/Downloads/MySQL-"
298 (version-major+minor version) "/"
299 name "-" version ".tar.gz")
301 "http://downloads.mysql.com/archives/get/file/"
302 name "-" version ".tar.gz")))
305 "0lcn9cm36n14g22bcppq5vf4nxbrl3khvlsp9hsixqdfb3l27gyf"))))
306 (build-system cmake-build-system)
309 '("-DBUILD_CONFIG=mysql_release"
312 "-DDEFAULT_CHARSET=utf8"
313 "-DDEFAULT_COLLATION=utf8_general_ci"
314 "-DMYSQL_DATADIR=/var/lib/mysql"
315 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
316 "-DINSTALL_INFODIR=share/mysql/docs"
317 "-DINSTALL_MANDIR=share/man"
318 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
319 "-DINSTALL_SCRIPTDIR=bin"
320 "-DINSTALL_INCLUDEDIR=include/mysql"
321 "-DINSTALL_DOCREADMEDIR=share/mysql/docs"
322 "-DINSTALL_SUPPORTFILESDIR=share/mysql"
323 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
324 "-DINSTALL_DOCDIR=share/mysql/docs"
325 "-DINSTALL_SHAREDIR=share/mysql"
326 ;; Get rid of test data.
327 "-DINSTALL_MYSQLTESTDIR="
328 "-DINSTALL_SQLBENCHDIR=")
329 #:phases (modify-phases %standard-phases
331 'unpack 'patch-boost-version
333 ;; Mysql wants boost-1.59.0 specifically
334 (substitute* "cmake/boost.cmake"
336 ,(match (string-split (package-version boost) #\.)
337 ((_ minor . _) minor))))))
339 'install 'remove-extra-binaries
340 (lambda* (#:key outputs #:allow-other-keys)
341 (let ((out (assoc-ref outputs "out")))
342 ;; Remove the 3 *_embedded files, which weigh in at
344 (for-each delete-file
345 (find-files (string-append out "/bin")
357 (home-page "http://www.mysql.com/")
358 (synopsis "Fast, easy to use, and popular database")
360 "MySQL is a fast, reliable, and easy to use relational database
361 management system that supports the standardized Structured Query
363 (license license:gpl2)))
365 (define-public mariadb
371 (uri (string-append "https://downloads.mariadb.org/f/"
372 name "-" version "/source/"
373 name "-" version ".tar.gz"))
376 "144lcm5awcf0k6a7saqfr4p2kg8r5wbdhdm4cmn2m8hyg1an70as"))))
377 (build-system cmake-build-system)
380 '("-DBUILD_CONFIG=mysql_release"
381 "-DDEFAULT_CHARSET=utf8"
382 "-DDEFAULT_COLLATION=utf8_general_ci"
383 "-DMYSQL_DATADIR=/var/lib/mysql"
384 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
385 "-DINSTALL_INFODIR=share/mysql/docs"
386 "-DINSTALL_MANDIR=share/man"
387 "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
388 "-DINSTALL_SCRIPTDIR=bin"
389 "-DINSTALL_INCLUDEDIR=include/mysql"
390 "-DINSTALL_DOCREADMEDIR=share/mysql/docs"
391 "-DINSTALL_SUPPORTFILESDIR=share/mysql/support-files"
392 "-DINSTALL_MYSQLSHAREDIR=share/mysql"
393 "-DINSTALL_DOCDIR=share/mysql/docs"
394 "-DINSTALL_SHAREDIR=share/mysql")
396 (modify-phases %standard-phases
398 'configure 'pre-configure
400 (setenv "CONFIG_SHELL" (which "sh"))
403 'install 'post-install
404 (lambda* (#:key outputs #:allow-other-keys)
405 (let* ((out (assoc-ref outputs "out"))
406 (test (assoc-ref outputs "test")))
407 (substitute* (string-append out "/bin/mysql_install_db")
409 (string-append "basedir=\"" out "\"")))
410 ;; Remove unneeded files for testing.
411 (with-directory-excursion out
412 (for-each delete-file-recursively
413 '("data" "mysql-test" "sql-bench"
414 "share/man/man1/mysql-test-run.pl.1")))))))))
419 `(("jemalloc" ,jemalloc)
426 (home-page "https://mariadb.org/")
427 (synopsis "SQL database server")
429 "MariaDB is a multi-user and multi-threaded SQL database server, designed
430 as a drop-in replacement of MySQL.")
431 (license license:gpl2)))
433 (define-public postgresql
439 (uri (string-append "https://ftp.postgresql.org/pub/source/v"
440 version "/postgresql-" version ".tar.bz2"))
443 "0bz1b9r249ffjfvldaiah2g78ccwq30ddh8hdvlq61z26inmz7mv"))))
444 (build-system gnu-build-system)
447 (modify-phases %standard-phases
448 (add-before 'configure 'patch-/bin/sh
450 ;; Refer to the actual shell.
451 (substitute* '("src/bin/pg_ctl/pg_ctl.c"
452 "src/bin/psql/command.c")
453 (("/bin/sh") (which "sh")))
456 `(("readline" ,readline)
458 (home-page "https://www.postgresql.org/")
459 (synopsis "Powerful object-relational database system")
461 "PostgreSQL is a powerful object-relational database system. It is fully
462 ACID compliant, has full support for foreign keys, joins, views, triggers, and
463 stored procedures (in multiple languages). It includes most SQL:2008 data
464 types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and
465 TIMESTAMP. It also supports storage of binary large objects, including
466 pictures, sounds, or video.")
467 (license (license:x11-style "file://COPYRIGHT"))))
476 (uri (string-append "http://fallabs.com/" name "/"
477 name "-" version ".tar.gz"))
480 "0gmpvhn02pkq280ffmn4da1g4mdr1xxz7l80b7y4n7km1mrzwrml"))))
481 (build-system gnu-build-system)
483 `( #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
484 (assoc-ref %outputs "out")
486 (home-page "http://fallabs.com/qdbm")
487 (synopsis "Key-value database")
488 (description "QDBM is a library of routines for managing a
489 database. The database is a simple data file containing key-value
490 pairs. Every key and value is serial bytes with variable length.
491 Binary data as well as character strings can be used as a key or a
492 value. There is no concept of data tables or data types. Records are
493 organized in a hash table or B+ tree.")
494 (license license:lgpl2.1+)))
496 (define-public recutils
502 (uri (string-append "mirror://gnu/recutils/recutils-"
506 "0cdwa4094x3yx7vn98xykvnlp9rngvd58d19vs3vh5hrvggccg93"))))
507 (build-system gnu-build-system)
509 ;; Running tests in parallel leads to test failures and crashes in
511 (arguments '(#:parallel-tests? #f
513 (list (string-append "--with-bash-headers="
514 (assoc-ref %build-inputs "bash:include")
517 #:phases (modify-phases %standard-phases
518 (add-before 'build 'set-bash4.4-header-location
520 (substitute* "bash/Makefile.in"
521 ;; Adjust the header search path for Bash
522 ;; 4.4 in accordance with 'bash.pc'.
523 (("AM_CPPFLAGS = (.*)$" _ rest)
524 (string-append "AM_CPPFLAGS = "
525 "-I$(BASH_HEADERS)/include "
528 ;; Install to PREFIX/lib/bash to match Bash
529 ;; 4.4's search path.
531 "libdir = @libdir@/bash\n"))
534 (native-inputs `(("emacs" ,emacs-minimal)
536 ("bash:include" ,bash "include")
537 ("libuuid" ,util-linux)))
539 ;; TODO: Add more optional inputs.
540 (inputs `(("curl" ,curl)
541 ("libgcrypt" ,libgcrypt)
543 (synopsis "Manipulate plain text files as databases")
545 "GNU Recutils is a set of tools and libraries for creating and
546 manipulating text-based, human-editable databases. Despite being text-based,
547 databases created with Recutils carry all of the expected features such as
548 unique fields, primary keys, time stamps and more. Many different field
549 types are supported, as is encryption.")
550 (license license:gpl3+)
551 (home-page "http://www.gnu.org/software/recutils/")))
553 (define-public rocksdb
559 (uri (string-append "https://github.com/facebook/rocksdb"
560 "/archive/v" version ".tar.gz"))
561 (file-name (string-append name "-" version ".tar.gz"))
564 "1qdbs13al7g45xc2j44wzx0ywrg32q1gsdhk5j6j4952xg91rfmh"))
565 (modules '((guix build utils)))
568 ;; TODO: unbundle gtest.
569 (delete-file "build_tools/gnu_parallel")
571 (build-system gnu-build-system)
573 '(#:make-flags (list "CC=gcc"
574 ;; Make the resulting library position-independent so the
575 ;; static version can be included in shared objects.
576 "EXTRA_CXXFLAGS=-fPIC"
577 (string-append "INSTALL_PATH="
578 (assoc-ref %outputs "out")))
580 (modify-phases %standard-phases
581 (add-after 'unpack 'patch-Makefile
583 (substitute* "Makefile"
584 (("build_tools/gnu_parallel") "parallel")
585 (("#!/bin/sh") (string-append "#!" (which "sh"))))
588 (add-before 'check 'disable-failing-tests
590 (substitute* "Makefile"
591 ;; These tests reliably fail due to "Too many open files".
592 (("^[[:blank:]]+env_test[[:blank:]]+\\\\") "\\")
593 (("^[[:blank:]]+persistent_cache_test[[:blank:]]+\\\\") "\\"))
596 'check 'build-release-libraries
597 ;; The 'check' target depends on the default target which is compiled
598 ;; with debug symbols. The 'install' target depends on shared and
599 ;; static release targets so we build them here for clarity.
600 ;; TODO: Add debug output.
601 (lambda* (#:key (make-flags '()) #:allow-other-keys)
602 ;; Prevent the build from adding machine-specific optimizations.
603 ;; This does not work if passed as a make flag...
604 (setenv "PORTABLE" "1")
605 (and (zero? (apply system* "make" "static_lib" make-flags))
606 (zero? (apply system* "make" "shared_lib" make-flags)))))
607 (add-after 'install 'delete-static-library
608 (lambda* (#:key outputs #:allow-other-keys)
609 (let* ((out (assoc-ref outputs "out"))
610 (lib (string-append out "/lib")))
611 (for-each (lambda (file)
613 (find-files lib "\\.l?a$"))
616 `(("parallel" ,parallel)
624 ("jemalloc" ,jemalloc)
628 (home-page "http://rocksdb.org/")
629 (synopsis "Persistent key-value store for fast storage")
631 "RocksDB is a library that forms the core building block for a fast
632 key-value server, especially suited for storing data on flash drives. It
633 has a @dfn{Log-Structured-Merge-Database} (LSM) design with flexible tradeoffs
634 between @dfn{Write-Amplification-Factor} (WAF), @dfn{Read-Amplification-Factor}
635 (RAF) and @dfn{Space-Amplification-Factor} (SAF). It has multi-threaded
636 compactions, making it specially suitable for storing multiple terabytes of
637 data in a single database. RocksDB is partially based on @code{LevelDB}.")
638 ;; RocksDB is BSD-3 and the JNI adapter is Apache 2.0.
639 (license (list license:bsd-3 license:asl2.0))))
641 (define-public sparql-query
643 (name "sparql-query")
647 (uri (string-append "https://github.com/tialaramex/"
648 name "/archive/" version ".tar.gz"))
650 (base32 "0yq3k20472rv8npcc420q9ab6idy584g5y0q501d360k5q0ggr8w"))
651 (file-name (string-append name "-" version ".tar.gz"))))
652 (build-system gnu-build-system)
654 `(("readline" ,readline)
660 `(("pkg-config" ,pkg-config)))
662 `(#:make-flags '("CC=gcc")
664 (modify-phases %standard-phases
666 ;; The Makefile uses git to obtain versioning information. This phase
667 ;; substitutes the git invocation with the package version.
668 (add-after 'unpack 'remove-git-dependency
670 (substitute* "Makefile"
672 (string-append "gitrev = \"v" ,version "\"")))))
673 ;; The install phase of the Makefile assumes $PREFIX/usr/local/bin.
674 ;; This replacement does the same thing, except for using $PREFIX/bin
677 (lambda* (#:key outputs #:allow-other-keys)
678 (let* ((out (assoc-ref outputs "out"))
679 (bin (string-append out "/bin")))
680 (install-file "sparql-query" bin)
681 (system* "ln" "--symbolic"
682 (string-append bin "/sparql-query")
683 (string-append bin "/sparql-update")))))
685 (lambda* (#:key make-flags #:allow-other-keys)
687 (zero? (apply system* "make" `(,@make-flags "scan-test")))
688 (zero? (system "./scan-test"))))))))
689 (home-page "https://github.com/tialaramex/sparql-query/")
690 (synopsis "Command-line tool for accessing SPARQL endpoints over HTTP")
691 (description "Sparql-query is a command-line tool for accessing SPARQL
692 endpoints over HTTP. It has been intentionally designed to 'feel' similar to
693 tools for interrogating SQL databases. For example, you can enter a query over
694 several lines, using a semi-colon at the end of a line to indicate the end of
695 your query. It also supports readline so that you can more easily recall and
696 edit previous queries, even across sessions. It can be used non-interactively,
697 for example from a shell script.")
698 ;; Some files (like scan-sparql.c) contain a GPLv3+ license header, while
699 ;; others (like sparql-query.c) contain a GPLv2+ license header.
700 (license (list license:gpl3+))))
702 (define-public sqlite
708 (uri (let ((numeric-version
709 (match (string-split version #\.)
710 ((first-digit other-digits ...)
711 (string-append first-digit
714 (map (cut string-pad <> 2 #\0)
717 (string-append "https://sqlite.org/2017/sqlite-autoconf-"
718 numeric-version ".tar.gz")))
721 "0k472gq0p706jq4529p60znvw02hdf172qxgbdv59q0n7anqbr54"))))
722 (build-system gnu-build-system)
723 (inputs `(("readline" ,readline)))
726 ;; Add -DSQLITE_SECURE_DELETE, -DSQLITE_ENABLE_UNLOCK_NOTIFY and
727 ;; -DSQLITE_ENABLE_DBSTAT_VTAB to CFLAGS. GNU Icecat will refuse
728 ;; to use the system SQLite unless these options are enabled.
729 (list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
730 "-DSQLITE_ENABLE_UNLOCK_NOTIFY "
731 "-DSQLITE_ENABLE_DBSTAT_VTAB"))))
732 (home-page "https://www.sqlite.org/")
733 (synopsis "The SQLite database management system")
735 "SQLite is a software library that implements a self-contained, serverless,
736 zero-configuration, transactional SQL database engine. SQLite is the most
737 widely deployed SQL database engine in the world. The source code for SQLite
738 is in the public domain.")
739 (license license:public-domain)))
747 (uri (string-append "https://www.samba.org/ftp/tdb/tdb-"
751 "0i1l38h0vyck6zkcj4fn2l03spadlmyr1qa1xpdp9dy2ccbm3s1r"))))
752 (build-system gnu-build-system)
755 (modify-phases %standard-phases
757 (lambda* (#:key outputs #:allow-other-keys)
758 (let ((out (assoc-ref outputs "out")))
759 ;; The 'configure' script is a wrapper for Waf and
760 ;; doesn't recognize things like '--enable-fast-install'.
761 (zero? (system* "./configure"
762 (string-append "--prefix=" out)))))))))
764 `(;; TODO: Build the documentation.
765 ;; ("docbook-xsl" ,docbook-xsl)
766 ;; ("libxml2" ,libxml2)
767 ;; ("libxslt" ,libxslt)
768 ("python" ,python-2))) ;for the Waf build system
769 (home-page "https://tdb.samba.org/")
770 (synopsis "Trivial database")
772 "TDB is a Trivial Database. In concept, it is very much like GDBM,
773 and BSD's DB except that it allows multiple simultaneous writers and uses
774 locking internally to keep writers from trampling on each other. TDB is also
776 (license license:lgpl3+)))
778 (define-public perl-dbi
785 "mirror://cpan/authors/id/T/TI/TIMB/DBI-"
789 "0v37vnr5p0bx396cj0lb5kb69jbryq2mspp602hbgd04gklxqzcg"))))
790 (build-system perl-build-system)
791 (synopsis "Database independent interface for Perl")
792 (description "This package provides an database interface for Perl.")
793 (home-page "http://search.cpan.org/dist/DBI")
794 (license (package-license perl))))
796 (define-public perl-dbix-class
798 (name "perl-dbix-class")
803 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
804 "DBIx-Class-" version ".tar.gz"))
807 "1vw1f756g8m5hq11nqf5dk2cw2y4mqq91ca5p75fn5g3fp8syja0"))))
808 (build-system perl-build-system)
810 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
811 ("perl-file-temp" ,perl-file-temp)
812 ("perl-package-stash" ,perl-package-stash)
813 ("perl-test-deep" ,perl-test-deep)
814 ("perl-test-exception" ,perl-test-exception)
815 ("perl-test-warn" ,perl-test-warn)))
817 `(("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
818 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
819 ("perl-class-inspector" ,perl-class-inspector)
820 ("perl-config-any" ,perl-config-any)
821 ("perl-context-preserve" ,perl-context-preserve)
822 ("perl-data-dumper-concise" ,perl-data-dumper-concise)
823 ("perl-data-page" ,perl-data-page)
824 ("perl-dbi" ,perl-dbi)
825 ("perl-devel-globaldestruction" ,perl-devel-globaldestruction)
826 ("perl-hash-merge" ,perl-hash-merge)
827 ("perl-module-find" ,perl-module-find)
828 ("perl-moo" ,perl-moo)
829 ("perl-mro-compat" ,perl-mro-compat)
830 ("perl-namespace-clean" ,perl-namespace-clean)
831 ("perl-path-class" ,perl-path-class)
832 ("perl-scalar-list-utils" ,perl-scalar-list-utils)
833 ("perl-scope-guard" ,perl-scope-guard)
834 ("perl-sql-abstract" ,perl-sql-abstract)
835 ("perl-sub-name" ,perl-sub-name)
836 ("perl-text-balanced" ,perl-text-balanced)
837 ("perl-try-tiny" ,perl-try-tiny)))
838 (home-page "http://search.cpan.org/dist/DBIx-Class")
839 (synopsis "Extensible and flexible object <-> relational mapper")
840 (description "An SQL to OO mapper with an object API inspired by
841 Class::DBI (with a compatibility layer as a springboard for porting) and a
842 resultset API that allows abstract encapsulation of database operations. It
843 aims to make representing queries in your code as perl-ish as possible while
844 still providing access to as many of the capabilities of the database as
845 possible, including retrieving related records from multiple tables in a
846 single query, \"JOIN\", \"LEFT JOIN\", \"COUNT\", \"DISTINCT\", \"GROUP BY\",
847 \"ORDER BY\" and \"HAVING\" support.")
848 (license (package-license perl))))
850 (define-public perl-dbix-class-cursor-cached
852 (name "perl-dbix-class-cursor-cached")
857 (uri (string-append "mirror://cpan/authors/id/A/AR/ARCANEZ/"
858 "DBIx-Class-Cursor-Cached-" version ".tar.gz"))
861 "09b2jahn2x12qm4f7qm1jzsxbz7qn1czp6a3fnl5l2i3l4r5421p"))))
862 (build-system perl-build-system)
864 `(("perl-cache-cache" ,perl-cache-cache)
865 ("perl-dbd-sqlite" ,perl-dbd-sqlite)))
867 `(("perl-carp-clan" ,perl-carp-clan)
868 ("perl-dbix-class" ,perl-dbix-class)))
869 (home-page "http://search.cpan.org/dist/DBIx-Class-Cursor-Cached")
870 (synopsis "Cursor with built-in caching support")
871 (description "DBIx::Class::Cursor::Cached provides a cursor class with
872 built-in caching support.")
873 (license (package-license perl))))
875 (define-public perl-dbix-class-introspectablem2m
877 (name "perl-dbix-class-introspectablem2m")
882 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
883 "DBIx-Class-IntrospectableM2M-" version ".tar.gz"))
886 "1w47rh2241iy5x3a9bqsyd5kdp9sk43dksr99frzv4qn4jsazfn6"))))
887 (build-system perl-build-system)
889 `(("perl-dbix-class" ,perl-dbix-class)))
890 (home-page "http://search.cpan.org/dist/DBIx-Class-IntrospectableM2M")
891 (synopsis "Introspect many-to-many relationships")
892 (description "Because the many-to-many relationships are not real
893 relationships, they can not be introspected with DBIx::Class. Many-to-many
894 relationships are actually just a collection of convenience methods installed
895 to bridge two relationships. This DBIx::Class component can be used to store
896 all relevant information about these non-relationships so they can later be
897 introspected and examined.")
898 (license (package-license perl))))
900 (define-public perl-dbix-class-schema-loader
902 (name "perl-dbix-class-schema-loader")
907 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
908 "DBIx-Class-Schema-Loader-" version ".tar.gz"))
911 "08cgn0dx42y9xsxas9np7s55a7qmy4kf6sfmx0jmk4hryvbapml3"))))
912 (build-system perl-build-system)
914 `(("perl-config-any" ,perl-config-any)
915 ("perl-config-general" ,perl-config-general)
916 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
917 ("perl-dbix-class-introspectablem2m" ,perl-dbix-class-introspectablem2m)
918 ("perl-moose" ,perl-moose)
919 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
920 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
921 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
922 ("perl-test-deep" ,perl-test-deep)
923 ("perl-test-differences" ,perl-test-differences)
924 ("perl-test-exception" ,perl-test-exception)
925 ("perl-test-pod" ,perl-test-pod)
926 ("perl-test-warn" ,perl-test-warn)))
928 `(("perl-class-unload" ,perl-class-unload)
929 ("perl-class-inspector" ,perl-class-inspector)
930 ("perl-class-accessor-grouped" ,perl-class-accessor-grouped)
931 ("perl-class-c3-componentised" ,perl-class-c3-componentised)
932 ("perl-carp-clan" ,perl-carp-clan)
933 ("perl-data-dump" ,perl-data-dump)
934 ("perl-dbix-class" ,perl-dbix-class)
935 ("perl-hash-merge" ,perl-hash-merge)
936 ("perl-list-moreutils" ,perl-list-moreutils)
937 ("perl-lingua-en-inflect-phrase" ,perl-lingua-en-inflect-phrase)
938 ("perl-lingua-en-inflect-number" ,perl-lingua-en-inflect-number)
939 ("perl-lingua-en-tagger" ,perl-lingua-en-tagger)
940 ("perl-namespace-clean" ,perl-namespace-clean)
941 ("perl-mro-compat" ,perl-mro-compat)
942 ("perl-scope-guard" ,perl-scope-guard)
943 ("perl-string-camelcase" ,perl-string-camelcase)
944 ("perl-string-toidentifier-en" ,perl-string-toidentifier-en)
945 ("perl-sub-name" ,perl-sub-name)
946 ("perl-try-tiny" ,perl-try-tiny)))
947 (arguments `(#:tests? #f)) ;TODO: t/20invocations.t fails
948 (home-page "http://search.cpan.org/dist/DBIx-Class-Schema-Loader")
949 (synopsis "Create a DBIx::Class::Schema based on a database")
950 (description "DBIx::Class::Schema::Loader automates the definition of a
951 DBIx::Class::Schema by scanning database table definitions and setting up the
952 columns, primary keys, unique constraints and relationships.")
953 (license (package-license perl))))
955 (define-public perl-dbd-pg
962 (uri (string-append "mirror://cpan/authors/id/T/TU/TURNSTEP/"
963 "DBD-Pg-" version ".tar.gz"))
966 "0z0kf1kjgbi5f6nr63i2fnrx7629d9lvxg1q8sficwb3zdf1ggzx"))))
967 (build-system perl-build-system)
969 `(("perl-dbi" ,perl-dbi)))
971 `(("perl-dbi" ,perl-dbi)
972 ("postgresql" ,postgresql)))
973 (home-page "http://search.cpan.org/dist/DBD-Pg")
974 (synopsis "DBI PostgreSQL interface")
975 (description "This package provides a PostgreSQL driver for the Perl5
976 @dfn{Database Interface} (DBI).")
977 (license (package-license perl))))
979 (define-public perl-dbd-mysql
981 (name "perl-dbd-mysql")
986 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
987 "DBD-mysql-" version ".tar.gz"))
990 "0h4h6zwzj8fwh9ljb8svnsa0a3ch4p10hp59kpdibdb4qh8xwxs7"))))
991 (build-system perl-build-system)
992 ;; Tests require running MySQL server
993 (arguments `(#:tests? #f))
995 `(("perl-dbi" ,perl-dbi)
997 (home-page "http://search.cpan.org/dist/DBD-mysql")
998 (synopsis "DBI MySQL interface")
999 (description "This package provides a MySQL driver for the Perl5
1000 @dfn{Database Interface} (DBI).")
1001 (license (package-license perl))))
1003 (define-public perl-dbd-sqlite
1005 (name "perl-dbd-sqlite")
1010 "mirror://cpan/authors/id/I/IS/ISHIGAKI/DBD-SQLite-"
1014 "0kimb2qr1rh07yylbbfybwcizpmy61ck667amypn4clmkfg0knm6"))))
1015 (build-system perl-build-system)
1016 (inputs `(("sqlite" ,sqlite)))
1017 (propagated-inputs `(("perl-dbi" ,perl-dbi)))
1018 (synopsis "SQlite interface for Perl")
1019 (description "DBD::SQLite is a Perl DBI driver for SQLite, that includes
1020 the entire thing in the distribution. So in order to get a fast transaction
1021 capable RDBMS working for your Perl project you simply have to install this
1022 module, and nothing else.")
1023 (license (package-license perl))
1024 (home-page "http://search.cpan.org/~ishigaki/DBD-SQLite/lib/DBD/SQLite.pm")))
1026 (define-public perl-sql-abstract
1028 (name "perl-sql-abstract")
1033 (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
1034 "SQL-Abstract-" version ".tar.gz"))
1037 "17sgwq3mvqjhv3b77cnvrq60xgp8harjhlnvpwmxc914rqc5ckaz"))))
1038 (build-system perl-build-system)
1040 `(("perl-test-deep" ,perl-test-deep)
1041 ("perl-test-exception" ,perl-test-exception)
1042 ("perl-test-warn" ,perl-test-warn)))
1044 `(("perl-hash-merge" ,perl-hash-merge)
1045 ("perl-moo" ,perl-moo)
1046 ("perl-mro-compat" ,perl-mro-compat)
1047 ("perl-text-balanced" ,perl-text-balanced)))
1048 (home-page "http://search.cpan.org/dist/SQL-Abstract")
1049 (synopsis "Generate SQL from Perl data structures")
1050 (description "This module was inspired by the excellent DBIx::Abstract.
1051 While based on the concepts used by DBIx::Abstract, the concepts used have
1052 been modified to make the SQL easier to generate from Perl data structures.
1053 The underlying idea is for this module to do what you mean, based on the data
1054 structures you provide it, so that you don't have to modify your code every
1055 time your data changes.")
1056 (license (package-license perl))))
1058 (define-public perl-sql-splitstatement
1060 (name "perl-sql-splitstatement")
1065 (uri (string-append "mirror://cpan/authors/id/E/EM/EMAZEP/"
1066 "SQL-SplitStatement-" version ".tar.gz"))
1069 "0bqg45k4c9qkb2ypynlwhpvzsl4ssfagmsalys18s5c79ps30z7p"))))
1070 (build-system perl-build-system)
1072 `(("perl-test-exception" ,perl-test-exception)))
1074 `(("perl-class-accessor" ,perl-class-accessor)
1075 ("perl-list-moreutils" ,perl-list-moreutils)
1076 ("perl-regexp-common" ,perl-regexp-common)
1077 ("perl-sql-tokenizer" ,perl-sql-tokenizer)))
1078 (home-page "http://search.cpan.org/dist/SQL-SplitStatement")
1079 (synopsis "Split SQL code into atomic statements")
1080 (description "This module tries to split any SQL code, even including
1081 non-standard extensions, into the atomic statements it is composed of.")
1082 (license (package-license perl))))
1084 (define-public perl-sql-tokenizer
1086 (name "perl-sql-tokenizer")
1091 (uri (string-append "mirror://cpan/authors/id/I/IZ/IZUT/"
1092 "SQL-Tokenizer-" version ".tar.gz"))
1095 "1qa2dfbzdlr5qqdam9yn78z5w3al5r8577x06qan8wv58ay6ka7s"))))
1096 (build-system perl-build-system)
1097 (home-page "http://search.cpan.org/dist/SQL-Tokenizer")
1098 (synopsis "SQL tokenizer")
1099 (description "SQL::Tokenizer is a tokenizer for SQL queries. It does not
1100 claim to be a parser or query verifier. It just creates sane tokens from a
1102 (license (package-license perl))))
1104 (define-public unixodbc
1112 "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-"
1115 (base32 "0f8y88rcc2akjvjv5y66yx7k0ms9h1s0vbcfy25j93didflhj59f"))))
1116 (build-system gnu-build-system)
1117 (synopsis "Data source abstraction library")
1118 (description "Unixodbc is a library providing an API with which to access
1119 data sources. Data sources include SQL Servers and any software with an ODBC
1121 (license license:lgpl2.1+)
1122 ;; COPYING contains copy of lgpl2.1 - but copyright notices just say "LGPL"
1123 (home-page "http://www.unixodbc.org")))
1125 (define-public unqlite
1131 ;; Contains bug fixes against the official release, and has an
1132 ;; autotooled build system.
1133 (uri (string-append "https://github.com/aidin36/tocc/releases/"
1135 "unqlite-unofficial-" version ".tar.gz"))
1138 "1sbpvhg15gadq0mpcy16q7k3rkg4b4dicpnn5xifpkpn02sqik3s"))))
1139 (build-system gnu-build-system)
1140 (arguments `(#:tests? #f)) ;No check target
1141 (home-page "http://www.unqlite.org")
1142 (synopsis "In-memory key/value and document store")
1144 "UnQLite is an in-process software library which implements a
1145 self-contained, serverless, zero-configuration, transactional NoSQL
1146 database engine. UnQLite is a document store database similar to
1147 MongoDB, Redis, CouchDB, etc. as well as a standard Key/Value store
1148 similar to BerkeleyDB, LevelDB, etc.")
1149 (license license:bsd-2)))
1151 (define-public redis
1157 (uri (string-append "http://download.redis.io/releases/redis-"
1161 "1wb9jd692a0y52bkkxr6815kk4g039mirjdrvqx24265lv2l5l1a"))))
1162 (build-system gnu-build-system)
1164 '(#:tests? #f ; tests related to master/slave and replication fail
1165 #:phases (modify-phases %standard-phases
1166 (delete 'configure))
1167 #:make-flags `("CC=gcc"
1170 ,(string-append "PREFIX="
1171 (assoc-ref %outputs "out")))))
1172 (synopsis "Key-value cache and store")
1173 (description "Redis is an advanced key-value cache and store. Redis
1174 supports many data structures including strings, hashes, lists, sets, sorted
1175 sets, bitmaps and hyperloglogs.")
1176 (home-page "http://redis.io/")
1177 (license license:bsd-3)))
1179 (define-public kyotocabinet
1181 (name "kyotocabinet")
1185 (uri (string-append "http://fallabs.com/kyotocabinet/pkg/"
1186 name "-" version ".tar.gz"))
1189 "0g6js20x7vnpq4p8ghbw3mh9wpqksya9vwhzdx6dnlf354zjsal1"))))
1190 (build-system gnu-build-system)
1194 (string-append "LDFLAGS=-Wl,-rpath="
1195 (assoc-ref %outputs "out") "/lib"))))
1196 (inputs `(("zlib" ,zlib)))
1197 (home-page "http://fallabs.com/kyotocabinet/")
1199 "Kyoto Cabinet is a modern implementation of the DBM database")
1201 "Kyoto Cabinet is a standalone file-based database that supports Hash
1202 and B+ Tree data storage models. It is a fast key-value lightweight
1203 database and supports many programming languages. It is a NoSQL database.")
1204 (license license:gpl3+)))
1206 (define-public wiredtiger
1213 "http://source.wiredtiger.com/releases/wiredtiger-"
1214 version ".tar.bz2"))
1217 "0krwnb2zfbhvjaskwl875qzd3y626s84zcciq2mxr5c5riw3yh6s"))))
1218 (build-system gnu-build-system)
1220 '(#:configure-flags '("--enable-lz4" "--enable-zlib")
1222 (modify-phases %standard-phases
1223 (add-before 'check 'disable-test/fops
1225 ;; XXX: timed out after 3600 seconds of silence
1226 (substitute* "Makefile"
1232 (home-page "http://source.wiredtiger.com/")
1233 (synopsis "NoSQL data engine")
1235 "WiredTiger is an extensible platform for data management. It supports
1236 row-oriented storage (where all columns of a row are stored together),
1237 column-oriented storage (where columns are stored in groups, allowing for
1238 more efficient access and storage of column subsets) and log-structured merge
1239 trees (LSM), for sustained throughput under random insert workloads.")
1240 (license license:gpl3) ; or GPL-2
1241 ;; configure.ac: WiredTiger requires a 64-bit build.
1242 (supported-systems '("x86_64-linux" "mips64el-linux"))))
1244 (define-public perl-db-file
1246 (name "perl-db-file")
1252 "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
1257 "0yp5d5zr8dk9g6xdh7ygi5bq63q7nxvhd58dk2i3ki4nb7yv2yh9"))))
1258 (build-system perl-build-system)
1259 (inputs `(("bdb" ,bdb)))
1260 (native-inputs `(("perl-test-pod" ,perl-test-pod)))
1262 `(#:phases (modify-phases %standard-phases
1264 'configure 'modify-config.in
1265 (lambda* (#:key inputs #:allow-other-keys)
1266 (substitute* "config.in"
1267 (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
1269 (home-page "http://search.cpan.org/dist/DB_File")
1271 "Perl5 access to Berkeley DB version 1.x")
1273 "The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
1274 (license (package-license perl))))
1282 (uri (string-append "https://github.com/LMDB/lmdb/archive/"
1283 "LMDB_" version ".tar.gz"))
1286 "12crvzxky8in99ibh22k4ppmkgqs28yy3v7yy944za7fsrqv8dfx"))))
1287 (build-system gnu-build-system)
1289 `(#:test-target "test"
1291 (modify-phases %standard-phases
1293 (lambda* (#:key outputs #:allow-other-keys)
1294 (chdir (string-append
1295 (getenv "PWD") "/lmdb-LMDB_" ,version "/libraries/liblmdb"))
1296 (substitute* "Makefile"
1297 (("/usr/local") (assoc-ref outputs "out")))
1299 (home-page "https://symas.com/products/lightning-memory-mapped-database")
1300 (synopsis "Lightning memory-mapped database library")
1301 (description "Lightning memory-mapped database library.")
1302 (license license:openldap2.8)))
1304 (define-public libpqxx
1311 "http://pqxx.org/download/software/libpqxx/"
1312 name "-" version ".tar.gz"))
1315 "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09"))))
1316 (build-system gnu-build-system)
1318 `(("python" ,python-2)))
1319 (inputs `(("postgresql" ,postgresql)))
1321 `(#:tests? #f)) ; # FAIL: 1
1322 (synopsis "C++ connector for PostgreSQL")
1324 "Libpqxx is a C++ library to enable user programs to communicate with the
1325 PostgreSQL database back-end. The database back-end can be local or it may be
1326 on another machine, accessed via TCP/IP.")
1327 (home-page "http://pqxx.org/")
1328 (license license:bsd-3)))
1330 (define-public python-peewee
1332 (name "python-peewee")
1337 (uri (pypi-uri "peewee" version))
1340 "1605bk11s7aap2q4qyba93rx7yfh8b11kk0cqi08z8klx2iar8yd"))))
1341 (build-system python-build-system)
1343 `(#:tests? #f)) ; Fails to import test data
1345 `(("python-cython" ,python-cython)))
1346 (home-page "https://github.com/coleifer/peewee/")
1347 (synopsis "Small object-relational mapping utility")
1349 "Peewee is a simple and small ORM (object-relation mapping) tool. Peewee
1350 handles converting between pythonic values and those used by databases, so you
1351 can use Python types in your code without having to worry. It has built-in
1352 support for sqlite, mysql and postgresql. If you already have a database, you
1353 can autogenerate peewee models using @code{pwiz}, a model generator.")
1354 (license license:expat)))
1356 (define-public python2-peewee
1357 (package-with-python2 python-peewee))
1359 (define-public sqlcipher
1366 (uri (string-append "https://github.com/sqlcipher/" name
1367 "/archive/v" version ".tar.gz"))
1369 (base32 "1gv58dlbpzrmznly52yqbxgvii0ib88zr3aszla1bsypwjr6flff"))
1370 (file-name (string-append name "-" version ".tar.gz"))))
1371 (build-system gnu-build-system)
1373 `(("libcrypto" ,openssl)
1374 ("libtcl8.6" ,tcl))) ; required for running the tests
1379 '("--enable-tempstore=yes"
1380 "CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_ENABLE_FTS3"
1381 "LDFLAGS=-lcrypto -ltcl8.6"
1383 ;; tests cannot be run from the Makefile
1384 ;; see: <https://github.com/sqlcipher/sqlcipher/issues/172>
1385 #:test-target "testfixture"
1387 (modify-phases %standard-phases
1388 (add-before 'check 'build-test-runner
1389 (assoc-ref %standard-phases 'check))
1393 (system* "./testfixture" "test/crypto.test")))))))
1394 (home-page "https://www.zetetic.net/sqlcipher/")
1396 "Library providing transparent encryption of SQLite database files")
1397 (description "SQLCipher is an implementation of SQLite, extended to
1398 provide transparent 256-bit AES encryption of database files. Pages are
1399 encrypted before being written to disk and are decrypted when read back. It’s
1400 well suited for protecting embedded application databases and for mobile
1403 ;; src/{crypto.c,crypto_impl.c,crypto.h,crypto_cc.c,crypto_libtomcrypt.c},
1404 ;; src/{crypto_openssl.c,sqlcipher.h}, tool/crypto-speedtest.tcl,
1405 ;; test/crypto.test are licensed under a 3-clause BSD license. All other
1406 ;; source files are in the public domain.
1407 (license (list license:public-domain license:bsd-3))))
1409 (define-public python-pyodbc-c
1411 (name "python-pyodbc-c")
1416 (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
1417 "archive.tar.gz?ref=v" version))
1420 "05aq2297k779xidmxcwkrrxjvj1bh2q7d9a1rcjv6zr15y764ga9"))
1421 (file-name (string-append name "-" version ".tar.gz"))))
1422 (build-system python-build-system)
1424 `(("unixodbc" ,unixodbc)))
1426 `(;; No unit tests exist.
1428 (home-page "https://github.com/mkleehammer/pyodbc")
1429 (synopsis "Python ODBC Library")
1430 (description "@code{python-pyodbc-c} provides a Python DB-API driver
1432 (license (license:x11-style "file://LICENSE.TXT"))))
1434 (define-public python2-pyodbc-c
1435 (package-with-python2 python-pyodbc-c))