diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-contexttimer/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-contexttimer/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-contexttimer/package.py b/var/spack/repos/builtin/packages/py-contexttimer/package.py new file mode 100644 index 0000000000..24164747e0 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-contexttimer/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.package import * + + +class PyContexttimer(PythonPackage): + """A timer as a context manager. + + contexttimer provides you with a couple of utilities to quickly measure the + execution time of a code block or a function. + """ + + homepage = "https://github.com/brouberol/contexttimer" + pypi = "contexttimer/contexttimer-0.3.3.tar.gz" + + version('0.3.3', sha256='35a1efd389af3f1ca509f33ff23e17d98b66c8fde5ba2a4eb8a8b7fa456598a5') + + depends_on('py-setuptools', type='build') |