diff --git a/packages/py-dicthash/package.py b/packages/py-dicthash/package.py new file mode 100644 index 0000000000000000000000000000000000000000..d29e40540ec86507a7ff7b3e757a233abf54ad57 --- /dev/null +++ b/packages/py-dicthash/package.py @@ -0,0 +1,45 @@ +# 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) + +# ---------------------------------------------------------------------------- +# If you submit this package back to Spack as a pull request, +# please first remove this boilerplate and all FIXME comments. +# +# This is a template package file for Spack. We've put "FIXME" +# next to all the things you'll want to change. Once you've handled +# them, you can save this file and test your package like this: +# +# spack install py-dicthash +# +# You can edit this file again by typing: +# +# spack edit py-dicthash +# +# See the Spack documentation for more information on packaging. +# ---------------------------------------------------------------------------- + +from spack import * + + +class PyDicthash(PythonPackage): + """Generate portable md5 hashes from (arbitrarily nested) dictionaries. + + These dictionaries can contain arbitrary Python and NumPy data types. The + goal of the module is to provide a hash function that can be safely used + across different platforms. Its main use is to generate unique identifiers + for parameter dictionaries used in parameter scans of neural network + simulations. + """ + + homepage = "https://python-dicthash.readthedocs.io" + pypi = "dicthash/dicthash-0.0.2.tar.gz" + git = "https://github.com/Happy-Algorithms-League/python-dicthash" + + maintainers = ['terhorstd', 'jakobj'] + + version('0.0.2', sha256='30b71bd64101295053b082b3244870e6ca7dca561bdb8f3776c42c8c40cb4af4') + + depends_on('py-setuptools', type='build') + diff --git a/packages/py-nesteddict/package.py b/packages/py-nesteddict/package.py new file mode 100644 index 0000000000000000000000000000000000000000..16562fd777fae87063b41f195ca0123eb821df56 --- /dev/null +++ b/packages/py-nesteddict/package.py @@ -0,0 +1,39 @@ +# 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) + +# ---------------------------------------------------------------------------- +# If you submit this package back to Spack as a pull request, +# please first remove this boilerplate and all FIXME comments. +# +# This is a template package file for Spack. We've put "FIXME" +# next to all the things you'll want to change. Once you've handled +# them, you can save this file and test your package like this: +# +# spack install py-nesteddict +# +# You can edit this file again by typing: +# +# spack edit py-nesteddict +# +# See the Spack documentation for more information on packaging. +# ---------------------------------------------------------------------------- + +from spack import * + + +class PyNesteddict(PythonPackage): + """A Python class that subclasses dict to allow dicts that allow dotted key + access e.g, dict["a.b.c']=7""" + + homepage = "https://github.com/jdrumgoole/nesteddict" + pypi = "nesteddict/nesteddict-0.1.3.tar.gz" + + # FIXME: Add a list of GitHub accounts to + # notify when the package is updated. + # maintainers = ['github_user1', 'github_user2'] + + version('0.1.3', sha256='07e5f59684df992559e6f25210edec8f5bc1cfc7114d9332d690f30fc1e49f47') + + depends_on('py-setuptools', type='build') diff --git a/packages/wf-multi-area-model/package.py b/packages/wf-multi-area-model/package.py new file mode 100644 index 0000000000000000000000000000000000000000..ac51078f97058706cb6a59219d14239f60771885 --- /dev/null +++ b/packages/wf-multi-area-model/package.py @@ -0,0 +1,21 @@ +# 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 import * + + +class WfMultiAreaModel(BundlePackage): + """Meta-package to collect all dependencies of the Multi-Area-Model.""" + + homepage="https://inm-6.github.io/multi-area-model/" + git = "https://github.com/INM-6/multi-area-model" + maintainer = ["terhorstd"] + + version("0.1") + + depends_on("py-nesteddict") + depends_on("py-dicthash") +