summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew-Dunning-NNL <67964561+Andrew-Dunning-NNL@users.noreply.github.com>2021-02-02 12:14:12 -0500
committerGitHub <noreply@github.com>2021-02-02 11:14:12 -0600
commit49b3ab684e750e05c44a34b20ce16b4c88285def (patch)
treee42808406181cdd0983067477017239607101c3f /var
parentdf0cc9ee028b27fc136a72bebc3d5665ce8371a9 (diff)
downloadspack-49b3ab684e750e05c44a34b20ce16b4c88285def.tar.gz
spack-49b3ab684e750e05c44a34b20ce16b4c88285def.tar.bz2
spack-49b3ab684e750e05c44a34b20ce16b4c88285def.tar.xz
spack-49b3ab684e750e05c44a34b20ce16b4c88285def.zip
py-flatten-dict: new recipe (#21329)
* py-flatten-dict: new recipe * Update var/spack/repos/builtin/packages/py-flatten-dict/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * py-flatten-dict: fix dependencies * py-flatten-dict: fix dependency Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-flatten-dict/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-flatten-dict/package.py b/var/spack/repos/builtin/packages/py-flatten-dict/package.py
new file mode 100644
index 0000000000..6b2eeb1d0a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-flatten-dict/package.py
@@ -0,0 +1,22 @@
+# 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 PyFlattenDict(PythonPackage):
+ """A flexible utility for flattening and unflattening dict-lik objects
+ in Python"""
+
+ homepage = "https://github.com/ianlini/flatten-dict"
+ pypi = "flatten-dict/flatten-dict-0.3.0.tar.gz"
+
+ version('0.3.0', sha256='0ccc43f15c7c84c5ef387ad19254f6769a32d170313a1bcbf4ce582089313d7e')
+
+ depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-six@1.12:1.999', type=('build', 'run'))
+ depends_on('py-pathlib2@2.3:2.999', type=('build', 'run'))