From patchwork Wed Sep 8 19:42:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 32721 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7712427BBE3; Wed, 8 Sep 2021 20:43:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3467427BBE1 for ; Wed, 8 Sep 2021 20:43:17 +0100 (BST) Received: from localhost ([::1]:52898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO3TY-0007um-Aa for patchwork@mira.cbaines.net; Wed, 08 Sep 2021 15:43:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO3TK-0007cU-KV for guix-patches@gnu.org; Wed, 08 Sep 2021 15:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mO3TK-0000gU-8B for guix-patches@gnu.org; Wed, 08 Sep 2021 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mO3TK-00085d-3Z for guix-patches@gnu.org; Wed, 08 Sep 2021 15:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50481] [PATCH 1/3] gnu: Add python-berkeleydb. References: <20210908193319.15104-1-arunisaac@systemreboot.net> In-Reply-To: <20210908193319.15104-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Sep 2021 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50481 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50481@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 50481-submit@debbugs.gnu.org id=B50481.163113014131026 (code B ref 50481); Wed, 08 Sep 2021 19:43:02 +0000 Received: (at 50481) by debbugs.gnu.org; 8 Sep 2021 19:42:21 +0000 Received: from localhost ([127.0.0.1]:33612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mO3Se-00084J-GE for submit@debbugs.gnu.org; Wed, 08 Sep 2021 15:42:20 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:37700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mO3Sa-000842-R6 for 50481@debbugs.gnu.org; Wed, 08 Sep 2021 15:42:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KG/C3uVVeZeYQfxI4rVyiVXJmaniB55m67afq5Fbg48=; b=p387Qqj+9+0+VYB8s0GLiIpzjt Vyc1C7uRo64QoUoRxf0qYE+cjiV4YL3dHBB5OyGvu8VqpmtXv42OXGoRDW1rOGEV5tghha8g6PnMk YcI0Rmnd+lx90B62x+Q50J7hS11JjLZrUj++aHux+WV4WOmZ8H3SocMh53IwgpfERCyntW9wUoYlL GF5IVENwdRHWCK4ru1MYzyHd6lewhOVHPk+4n3fyQoaDBDNyThB/4D2ZddvV8EXLxJAGnSS0Svr/4 7rbiKcEseUya3cOA7iZnpO1sttbYs18EnLfOeWCaLfS5Vapt2IW6QHhKlEwG1rm9EcDxYCerJmrEm O1gb7WWw==; Received: from [192.168.2.1] (port=61150 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mO3SX-000WuL-OB; Thu, 09 Sep 2021 01:12:13 +0530 From: Arun Isaac Date: Thu, 9 Sep 2021 01:12:09 +0530 Message-Id: <20210908194211.16140-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-berkeleydb): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7c70829de9..a7020b7615 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26556,3 +26556,44 @@ files and directories and adds a datestamp in standard ISO 8601+ format YYYY-MM-DD at the beginning of the file or directory name.") (home-page "https://github.com/novoid/date2name") (license license:gpl3+)))) + +(define-public python-berkeleydb + (package + (name "python-berkeleydb") + (version "18.1.4") + (source + (origin + ;; We use the upstream repository, as the tests are not included in the + ;; PyPI releases. + (method hg-fetch) + (uri (hg-reference + (url "https://hg.jcea.es/pybsddb/") + (changeset version))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0xj0l73ns6xph5pmysna7g4rdla1alvh2s2k2crhwv8yghjmnjqi")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'unpack 'suppress-license-warning + (lambda* (#:key inputs #:allow-other-keys) + (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb")) + (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./test.py" "-v"))))))) + (inputs + `(("bdb" ,bdb))) + (home-page "https://www.jcea.es/programacion/pybsddb.htm") + (synopsis "Python bindings for Oracle Berkeley DB") + (description "This package provides a nearly complete wrapping of the +Oracle/Sleepycat C API for the Database Environment, Database, Cursor, Log +Cursor, Sequence and Transaction objects, and each of these is exposed as a +Python type in the berkeleydb.db module. The database objects can use various +access methods: btree, hash, recno, queue and heap. Oracle Berkeley DB +distributed transactions, Oracle Berkeley DB Replication Manager and Oracle +Berkeley DB Base Replication are supported.") + (license license:bsd-3)))