diff options
author | Michael Kuhn <michael.kuhn@ovgu.de> | 2021-10-25 02:47:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 20:47:56 -0400 |
commit | dfcd5d4c81a3336c6b73bac334fd77bbb494c9a4 (patch) | |
tree | e9bb20f54d816edc44e491afdfaf996f3db8a5ac | |
parent | e3b7eb418fd41660ba54439c33fffdf93aeca7b1 (diff) | |
download | spack-dfcd5d4c81a3336c6b73bac334fd77bbb494c9a4.tar.gz spack-dfcd5d4c81a3336c6b73bac334fd77bbb494c9a4.tar.bz2 spack-dfcd5d4c81a3336c6b73bac334fd77bbb494c9a4.tar.xz spack-dfcd5d4c81a3336c6b73bac334fd77bbb494c9a4.zip |
hyperfine: new package (#26901)
-rw-r--r-- | var/spack/repos/builtin/packages/hyperfine/package.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hyperfine/package.py b/var/spack/repos/builtin/packages/hyperfine/package.py new file mode 100644 index 0000000000..0b8f5d5d71 --- /dev/null +++ b/var/spack/repos/builtin/packages/hyperfine/package.py @@ -0,0 +1,23 @@ +# 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 Hyperfine(Package): + """A command-line benchmarking tool.""" + + homepage = "https://github.com/sharkdp/hyperfine" + url = "https://github.com/sharkdp/hyperfine/archive/refs/tags/v1.12.0.tar.gz" + + maintainers = ['michaelkuhn'] + + version('1.12.0', sha256='2120870a97e68fa3426eac5646a071c9646e96d2309220e3c258bf588e496454') + + depends_on('rust@1.46:') + + def install(self, spec, prefix): + cargo = which('cargo') + cargo('install', '--root', prefix, '--path', '.') |