diff options
author | Matthieu Dorier <mdorier@anl.gov> | 2020-01-18 19:51:55 +0000 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2020-01-18 13:51:55 -0600 |
commit | d8b4bee0cd806c01cc18a080610bd7dfc46c2129 (patch) | |
tree | 35ec09418989f9a2e12a8e74f0983a61a4991924 | |
parent | cacd57d3401c48490870df2a9c1b7ab51d0e5065 (diff) | |
download | spack-d8b4bee0cd806c01cc18a080610bd7dfc46c2129.tar.gz spack-d8b4bee0cd806c01cc18a080610bd7dfc46c2129.tar.bz2 spack-d8b4bee0cd806c01cc18a080610bd7dfc46c2129.tar.xz spack-d8b4bee0cd806c01cc18a080610bd7dfc46c2129.zip |
Added py-spdlog package (#14514)
* Added py-spdlog package
* pleasing flake-8
* pleasing flake-8
* addressed some comments from adamjstewart
* changed URL for archive
* replaced with pypi.io url
-rw-r--r-- | var/spack/repos/builtin/packages/py-spdlog/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-spdlog/package.py b/var/spack/repos/builtin/packages/py-spdlog/package.py new file mode 100644 index 0000000000..2e149b6b30 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-spdlog/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2020 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 PySpdlog(PythonPackage): + """The py-spdlog package provides a Python wrapper + to the C++ spdlog library.""" + + homepage = 'https://github.com/bodgergely/spdlog-python' + url = 'https://pypi.io/packages/source/s/spdlog/spdlog-2.0.0.tar.gz' + git = 'https://github.com/bodgergely/spdlog-python.git' + + # NOTE: Righ now py-spdlog works with a git submodule containing a copy + # of spdlog. Ideally we would want to install spdlog ourselves and make + # this package depend on it. There is an issue for that on the py-spdlog + # github repository: https://github.com/bodgergely/spdlog-python/issues/19 + + version('master', branch='master', submodules=True) + version('2.0.0', sha256='b8d3732839850da414a47e91547ee1246f0690cb83f43f11a1fbaec40b7b968c') + + depends_on('py-pybind11@2.2:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-pytest-runner', type='build') + depends_on('py-pytest', type='test') |