From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uBkTNFMSOWEcCQAAgWs5BA (envelope-from ) for ; Wed, 08 Sep 2021 21:43:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wApQMFMSOWF7SwAAB5/wlQ (envelope-from ) for ; Wed, 08 Sep 2021 19:43:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D2974107 for ; Wed, 8 Sep 2021 21:43:15 +0200 (CEST) Received: from localhost ([::1]:52898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO3TW-0007um-EI for larch@yhetil.org; Wed, 08 Sep 2021 15:43:14 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631130195; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KG/C3uVVeZeYQfxI4rVyiVXJmaniB55m67afq5Fbg48=; b=pngIiavPZafzOtx7K8Tj44us39ihTkLVBQsDyiHeKqiwpd444ZHDDZb5z3My1RuuBkglxK Nsgc4e5Il+5FAWctoFudUm1Q1ZT1hxVINS9KKr1qZnqPJHCMf/UfcK8VftuPNw//rBkqaj q/oOVpAAbPH6kRRlL+EWHaE7Px8fBFvrd8bGnXMiBi0ug7yasIR6vzCaviEDhZMdM/gvMy cyIPZX/0PiFgcpWFKUtsSc3z59GybYKC/PMsW301ciEMeoHirbwCzIDmEczolN0GpA/stU RECkv9AaIrI+5qR4w0pLGQZRDnL7ohDfQItd00uuY/eefnc1oqQ0/VQUGNyRmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631130195; a=rsa-sha256; cv=none; b=OtkSFnUvgdCLhT0lPDad6Yj6AkBC7FKVRXwS3RZAEE/8npljaboMa2JmdOluqdl/kamiox 9lkHYPKNJOJqv2MKEHEpgFJEAy7iej/iYESXrOHQSAKqiMM0Sh8MP9Lv+aMeRyofdQVrVw vfya/P5naeVB0FA+3xYBgN3sfHjXc9NjF3K0zbp//U1LooKBnSw1rMo/upxM9auREOV36J fPGzz121FKRtdQfEPzNokVyYD4yw30kRGLpCcfw2dftDlUnx/mvFKvmNjuPa8KPVW5GLHd JVjmykG6M5ED0aUwXK+xjBnWYMkTFWrMV9tO8JFYFI3MHNSpxGWYjkDbEzTqqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=p387Qqj+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=p387Qqj+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5D2974107 X-Spam-Score: 3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: ptUh8yc/f6H6 * 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))) -- 2.33.0