blob: 17c9658f4c880bfa09296bf86acd85983f9a1544 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright 2013-2023 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)
from spack.package import *
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/"
license("OLDAP-2.8")
version("1.3.0", sha256="60a11efc21aaf009d06518996360eed346f6000bfc9de05114374230879f992e")
version("1.1.1", sha256="165cd1669b29b16c2d5cc8902b90fede15a7ee475c54d466f1444877a3f511ac")
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")
|