diff options
author | iarspider <iarspider@gmail.com> | 2021-12-15 22:35:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 14:35:07 -0700 |
commit | 351a1d8d37d5a111e1f57044cef2582c0c05f9ae (patch) | |
tree | 1a41c1b178c22d79a6d650ac64eddd90256ba5b4 /var | |
parent | b0f996c8ef68fa8263bdfb299c9c5bc6f4a7c90d (diff) | |
download | spack-351a1d8d37d5a111e1f57044cef2582c0c05f9ae.tar.gz spack-351a1d8d37d5a111e1f57044cef2582c0c05f9ae.tar.bz2 spack-351a1d8d37d5a111e1f57044cef2582c0c05f9ae.tar.xz spack-351a1d8d37d5a111e1f57044cef2582c0c05f9ae.zip |
New package: py-pysqlite3 (#28020)
* New package: py-pysqlite3
* Apply suggestions from code review
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update package.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-pysqlite3/package.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pysqlite3/package.py b/var/spack/repos/builtin/packages/py-pysqlite3/package.py new file mode 100644 index 0000000000..72841002af --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pysqlite3/package.py @@ -0,0 +1,26 @@ +# 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) + +from spack 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.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') |