blob: 202b8d45b8cd4d00db1c2fb542fa9b61f2396226 (
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
27
28
29
30
31
|
# Copyright 2013-2022 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 PyPysqlite3(PythonPackage):
"""DB-API 2.0 interface for Sqlite 3.x"""
homepage = "https://github.com/coleifer/pysqlite3"
pypi = "pysqlite3/pysqlite3-0.4.6.tar.gz"
version("0.4.7", sha256="0352864898aa406beb762f4a620594c950a9a4430caab679bce574065698c8ac")
version("0.4.6", sha256="7ec4d4c477fa96609c1517afbc33bf02747588e528e79c695de95907cea7bf30")
depends_on("py-setuptools", type="build")
depends_on("sqlite", type=("build", "link", "run"))
def patch(self):
filter_file(
"^include_dirs *=.*",
"include_dirs = " + self.spec["sqlite"].headers.directories[0],
"setup.cfg",
)
filter_file(
"^library_dirs *=.*",
"library_dirs = " + self.spec["sqlite"].libs.directories[0],
"setup.cfg",
)
|