summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2022-01-04 19:59:16 -0500
committerGitHub <noreply@github.com>2022-01-04 17:59:16 -0700
commit422ae20a4515cec609ddbc0182fad0bd76657427 (patch)
treebe3305b4d4f4d975384d822d3a81dd7658dda5a4
parentefc5d0a3b49d193910b426198d24a3440483f71f (diff)
downloadspack-422ae20a4515cec609ddbc0182fad0bd76657427.tar.gz
spack-422ae20a4515cec609ddbc0182fad0bd76657427.tar.bz2
spack-422ae20a4515cec609ddbc0182fad0bd76657427.tar.xz
spack-422ae20a4515cec609ddbc0182fad0bd76657427.zip
new package: py-lmdb (#28239)
-rw-r--r--var/spack/repos/builtin/packages/py-lmdb/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-lmdb/package.py b/var/spack/repos/builtin/packages/py-lmdb/package.py
new file mode 100644
index 0000000000..42958a6c7a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-lmdb/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+class PyLmdb(PythonPackage):
+ """ Universal Python binding for the LMDB 'Lightning' Database"""
+
+ pypi = "lmdb/lmdb-1.3.0.tar.gz"
+ homepage = "https://github.com/jnwatson/py-lmdb/"
+
+ version('1.3.0', sha256='60a11efc21aaf009d06518996360eed346f6000bfc9de05114374230879f992e')
+
+ depends_on('python@2.7:2,3.4:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('lmdb')
+
+ def setup_build_environment(self, env):
+ env.set('LMDB_FORCE_SYSTEM', '1')