summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-04-26 15:08:21 -0700
committerGitHub <noreply@github.com>2020-04-26 17:08:21 -0500
commite8efeda14acbfd0c2c9ca1cc9641b3a1a632809e (patch)
treef4f6d8ff19c4c115a37b93f7dc42f9a652175c03
parentf20202387680aa00767cc76d89ee71701f7d9e44 (diff)
downloadspack-e8efeda14acbfd0c2c9ca1cc9641b3a1a632809e.tar.gz
spack-e8efeda14acbfd0c2c9ca1cc9641b3a1a632809e.tar.bz2
spack-e8efeda14acbfd0c2c9ca1cc9641b3a1a632809e.tar.xz
spack-e8efeda14acbfd0c2c9ca1cc9641b3a1a632809e.zip
py-profilehooks (new package) (#16305)
Adds the py-profilehooks package.
-rw-r--r--var/spack/repos/builtin/packages/py-profilehooks/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-profilehooks/package.py b/var/spack/repos/builtin/packages/py-profilehooks/package.py
new file mode 100644
index 0000000000..47b52a455c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-profilehooks/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2020 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 PyProfilehooks(PythonPackage):
+ """Python decorators for profiling/tracing/timing a single function"""
+
+ homepage = "https://mg.pov.lt/profilehooks/"
+ url = "https://pypi.io/packages/source/p/profilehooks/profilehooks-1.11.2.tar.gz"
+
+ git = "https://github.com/mgedmin/profilehooks.git"
+
+ version('1.11.2', sha256='41a74c1abdc5eeaf7dec024e9e89627f70e158374d263a3098bef31a06d38ab2')
+
+ depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')