From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:34632) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbq1v-0007oU-LI for guix-patches@gnu.org; Fri, 14 Jun 2019 13:30:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbq1k-0005eQ-Ah for guix-patches@gnu.org; Fri, 14 Jun 2019 13:30:15 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbq1b-0005P2-1E for guix-patches@gnu.org; Fri, 14 Jun 2019 13:30:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbq1a-000475-SN for guix-patches@gnu.org; Fri, 14 Jun 2019 13:30:02 -0400 Subject: [bug#36210] [PATCH 1/3] gnu: Add python-bsddb3 Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:34382) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbq0z-0007Yo-IL for guix-patches@gnu.org; Fri, 14 Jun 2019 13:29:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbq0x-0004mf-K9 for guix-patches@gnu.org; Fri, 14 Jun 2019 13:29:25 -0400 Received: from mout02.posteo.de ([185.67.36.66]:60477) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbq0x-0004jq-Cc for guix-patches@gnu.org; Fri, 14 Jun 2019 13:29:23 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 812C2240103 for ; Fri, 14 Jun 2019 19:29:21 +0200 (CEST) From: Guillaume LE VAILLANT Date: Fri, 14 Jun 2019 19:27:49 +0200 Message-Id: <20190614172751.22468-2-glv@posteo.net> In-Reply-To: <20190614172751.22468-1-glv@posteo.net> References: <20190614172751.22468-1-glv@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36210@debbugs.gnu.org Cc: glv@posteo.net * gnu/packages/python-xyz.scm (python-bsddb3): New variable. --- gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a7c88e9187..7474becda5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -60,6 +60,7 @@ ;;; Copyright =C2=A9 2019 Brett Gilio ;;; Copyright =C2=A9 2019 Sam ;;; Copyright =C2=A9 2019 Jack Hill +;;; Copyright =C2=A9 2019 Guillaume Le Vaillant ;;; ;;; This file is part of GNU Guix. ;;; @@ -88,6 +89,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages crypto) #:use-module (gnu packages databases) + #:use-module (gnu packages dbm) #:use-module (gnu packages file) #:use-module (gnu packages fontutils) #:use-module (gnu packages gcc) @@ -15396,3 +15398,40 @@ by Igor Pavlov.") =20 (define-public python2-pylzma (package-with-python2 python-pylzma)) + +(define-public python-bsddb3 + (package + (name "python-bsddb3") + (version "6.2.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "bsddb3" version)) + (sha256 + (base32 + "019db2y6bfmiqbrgg9x9f6h72qjmqh05czdn2v5sy9bl0gs23mj2")))) + (build-system python-build-system) + (inputs + `(("bdb" ,bdb))) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'configure-locations + (lambda* (#:key inputs #:allow-other-keys) + (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb")) + (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSI= ON" "1") + #t)) + (replace 'check + (lambda _ + (invoke "python3" "test3.py" "-v")))))) + (home-page "https://www.jcea.es/programacion/pybsddb.htm") + (synopsis "Python bindings for Oracle Berkeley DB") + (description + "This module provides a nearly complete wrapping of the Oracle/Slee= pycat +C API for the Database Environment, Database, Cursor, Log Cursor, Sequen= ce and +Transaction objects, and each of these is exposed as a Python type in th= e +bsddb3.db module. The database objects can use various access methods: = btree, +hash, recno, and queue. Complete support of Berkeley DB distributed +transactions. Complete support for Berkeley DB Replication Manager. +Complete support for Berkeley DB Base Replication. Support for RPC.") + (license license:bsd-3))) --=20 2.22.0