summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Koning <koning@users.noreply.github.com>2019-11-25 11:00:45 -0800
committerAdam J. Stewart <ajstewart426@gmail.com>2019-11-25 13:00:45 -0600
commitc349759acdf4256181beca9b3c9e4e0494c9707c (patch)
tree0d0e9bb4366ad769752d253fd4ab0c917a0a1690
parent87e757ee93274fa2766fefabcaa753beda90c6d4 (diff)
downloadspack-c349759acdf4256181beca9b3c9e4e0494c9707c.tar.gz
spack-c349759acdf4256181beca9b3c9e4e0494c9707c.tar.bz2
spack-c349759acdf4256181beca9b3c9e4e0494c9707c.tar.xz
spack-c349759acdf4256181beca9b3c9e4e0494c9707c.zip
Add the py-importlib-resources package (#13854)
* Add the py-importlib_re package * Rename package to conform with spack naming convention. * Rename package to py-importlib-resources Add python depend modules for previous python versions and depends_on python. * Add whitespaces.
-rw-r--r--var/spack/repos/builtin/packages/py-importlib-resources/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-importlib-resources/package.py b/var/spack/repos/builtin/packages/py-importlib-resources/package.py
new file mode 100644
index 0000000000..37b7d4cb19
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-importlib-resources/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2019 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 PyImportlibResources(PythonPackage):
+ """Read resources from Python packages"""
+
+ homepage = "https://pypi.org/project/importlib_resources/"
+ url = "https://pypi.io/packages/source/i/importlib_resources/importlib_resources-1.0.2.tar.gz"
+
+ version('1.0.2', sha256='d3279fd0f6f847cced9f7acc19bd3e5df54d34f93a2e7bb5f238f81545787078')
+
+ depends_on('python@2.7:2.8,3.4:', type=('build', 'run'))
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-wheel', type='build')
+ depends_on('py-pathlib2', when='^python@:2', type=('build', 'run'))
+ depends_on('py-typing', when='^python@:3.4', type=('build', 'run'))