diff options
author | Jean Luca Bez <jeanlucabez@gmail.com> | 2022-11-09 14:44:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 16:44:45 -0600 |
commit | ae6213b1930abe048c8a3043fec2f3bd29f68390 (patch) | |
tree | 4fbb263c737368222874214fef1c22780f2c498b /var | |
parent | bb1cd430c0d6f8bebfb655c65244a25bcc325d8d (diff) | |
download | spack-ae6213b1930abe048c8a3043fec2f3bd29f68390.tar.gz spack-ae6213b1930abe048c8a3043fec2f3bd29f68390.tar.bz2 spack-ae6213b1930abe048c8a3043fec2f3bd29f68390.tar.xz spack-ae6213b1930abe048c8a3043fec2f3bd29f68390.zip |
New package: py-darshan (#33430)
* include py-darshan
* include requested changes
* fix required versions
* fix style
* fix style
* Update package.py
* Update var/spack/repos/builtin/packages/py-darshan/package.py
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-darshan/package.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-darshan/package.py b/var/spack/repos/builtin/packages/py-darshan/package.py new file mode 100644 index 0000000000..217145a7b6 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-darshan/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) + +from spack.package import * + + +class PyDarshan(PythonPackage): + """Python utilities to interact with Darshan log records of HPC applications.""" + + homepage = "https://www.mcs.anl.gov/research/projects/darshan" + pypi = "darshan/darshan-3.4.0.1.tar.gz" + + maintainers = ["jeanbez", "shanedsnyder"] + + version("3.4.0.1", sha256="0142fc7c0b12a9e5c22358aa26cca7083d28af42aeea7dfcc5698c56b6aee6b7") + + depends_on("python@3.6:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-importlib-resources", when="^python@3.6", type=("build", "run")) + depends_on("py-cffi", type=("build", "run")) + # NOTE: SciPy is an indirect dependency needed for interpolate usage in pandas + # It will be fixed in the next release + depends_on("py-scipy", type=("build", "run")) + depends_on("py-numpy@1.21:", type=("build", "run")) + depends_on("py-pandas", type=("build", "run")) + # NOTE: matplotlib should be pinned until next release, for details: + # https://github.com/darshan-hpc/darshan/issues/742 + depends_on("py-matplotlib@3.4", type=("build", "run")) + depends_on("py-seaborn", type=("build", "run")) + depends_on("py-mako", type=("build", "run")) + depends_on("py-pytest", type="test") + # NOTE: lxml is test-only indirect dependency via pandas + # It will become optional in the next release + depends_on("py-lxml", type=("test")) + + depends_on("darshan-util", type=("build", "run")) + + @run_after("install") + @on_package_attributes(run_tests=True) + def install_test(self): + with working_dir("./darshan/tests"): + pytest = which("pytest") + pytest() |