From: Arun Isaac <arunisaac@systemreboot.net>
To: 50481@debbugs.gnu.org
Cc: Arun Isaac <arunisaac@systemreboot.net>
Subject: [bug#50481] [PATCH 1/3] gnu: Add python-berkeleydb.
Date: Thu, 9 Sep 2021 01:12:09 +0530 [thread overview]
Message-ID: <20210908194211.16140-1-arunisaac@systemreboot.net> (raw)
In-Reply-To: <20210908193319.15104-1-arunisaac@systemreboot.net>
* 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
next prev parent reply other threads:[~2021-09-08 19:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-08 19:33 [bug#50481] [PATCH 0/3] Update python-rdflib Arun Isaac
2021-09-08 19:42 ` Arun Isaac [this message]
2021-09-08 19:42 ` [bug#50481] [PATCH 2/3] gnu: python-rdflib: Update to 6.0.0 Arun Isaac
2021-09-08 19:42 ` [bug#50481] [PATCH 3/3] gnu: python2-rdflib: Remove package Arun Isaac
2021-09-21 12:54 ` [bug#50481] [PATCH 0/3] Update python-rdflib Ludovic Courtès
2021-09-22 20:25 ` Arun Isaac
2022-02-15 7:42 ` bug#50481: " Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210908194211.16140-1-arunisaac@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=50481@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.