[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/10: gnu: Add python-lmdb.
From: |
Tobias Geerinckx-Rice |
Subject: |
09/10: gnu: Add python-lmdb. |
Date: |
Wed, 21 Jun 2017 16:03:02 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 07041d95b17e98adb152fee3c92f8f5efa58dcbf
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Thu Jun 15 10:21:57 2017 +0200
gnu: Add python-lmdb.
* gnu/packages/databases.scm (python-lmdb, python2-lmdb): New variables.
---
gnu/packages/databases.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 4aa8949..c614f7f 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1549,3 +1549,49 @@ file format to other databases such as MySQL, Oracle,
Sybase, PostgreSQL,
etc., and an SQL engine for performing simple SQL queries.")
(license (list license:lgpl2.0
license:gpl2+))))
+
+(define-public python-lmdb
+ (package
+ (name "python-lmdb")
+ (version "0.92")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "lmdb" version))
+ (sha256
+ (base32
+ "01nw6r08jkipx6v92kw49z34wmwikrpvc5j9xawdiyg1n2526wrx"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Delete bundled lmdb source files.
+ '(for-each delete-file (list "lib/lmdb.h"
+ "lib/mdb.c"
+ "lib/midl.c"
+ "lib/midl.h")))))
+ (build-system python-build-system)
+ (inputs
+ `(("lmdb" ,lmdb)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'use-system-lmdb
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((lmdb (assoc-ref inputs "lmdb")))
+ (setenv "LMDB_FORCE_SYSTEM" "set")
+ (setenv "LMDB_INCLUDEDIR" (string-append lmdb "/include"))
+ (setenv "LMDB_LIBDIR" (string-append lmdb "/lib"))
+ #t))))
+ ;; Tests fail with: ‘lmdb.tool: Please specify environment (--env)’.
+ #:tests? #f))
+ (home-page "https://github.com/dw/py-lmdb")
+ (synopsis "Python binding for the ‘Lightning’ database (LMDB)")
+ (description
+ "python-lmdb or py-lmdb is a Python binding for the @dfn{Lightning
+Memory-Mapped Database} (LMDB), a high-performance key-value store.")
+ (license
+ (list license:openldap2.8
+ ;; ‘lib/win32/inttypes.h’ and ‘lib/win32-stdint/stdint.h’ are BSD-3,
+ ;; but not actually needed on platforms currently supported by Guix.
+ license:bsd-3))))
+
+(define-public python2-lmdb
+ (package-with-python2 python-lmdb))
- branch master updated (7641266 -> c7d0444), Tobias Geerinckx-Rice, 2017/06/21
- 03/10: gnu: python-hacking: Update to 0.13.0., Tobias Geerinckx-Rice, 2017/06/21
- 06/10: gnu: cracklib: Fix up description., Tobias Geerinckx-Rice, 2017/06/21
- 04/10: gnu: Remove unused python-flake8-2.2.4., Tobias Geerinckx-Rice, 2017/06/21
- 01/10: gnu: python-vobject: Update to 0.9.4.1., Tobias Geerinckx-Rice, 2017/06/21
- 02/10: gnu: python-eventlet: Skip failing test phase., Tobias Geerinckx-Rice, 2017/06/21
- 05/10: gnu: libpwquality: Update to 1.4.0., Tobias Geerinckx-Rice, 2017/06/21
- 08/10: gnu: lmdb: Expand description., Tobias Geerinckx-Rice, 2017/06/21
- 10/10: gnu: knot: Update to 2.5.1., Tobias Geerinckx-Rice, 2017/06/21
- 09/10: gnu: Add python-lmdb.,
Tobias Geerinckx-Rice <=
- 07/10: gnu: python-pycodestyle: Update to 2.3.1., Tobias Geerinckx-Rice, 2017/06/21