diff options
author | Sinan <sbulutw@gmail.com> | 2020-08-29 13:50:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 15:50:07 -0500 |
commit | 884e707810f4ca116ca34156db99e724049f51da (patch) | |
tree | 72def8018e87f8128b548999ce8d09b1efffee48 | |
parent | a475ef20ddb4657bee56226ed7e7078248424441 (diff) | |
download | spack-884e707810f4ca116ca34156db99e724049f51da.tar.gz spack-884e707810f4ca116ca34156db99e724049f51da.tar.bz2 spack-884e707810f4ca116ca34156db99e724049f51da.tar.xz spack-884e707810f4ca116ca34156db99e724049f51da.zip |
new package: py-stopit (#18384)
Co-authored-by: sbulut <sbulut@3vgeomatics.com>
-rw-r--r-- | var/spack/repos/builtin/packages/py-stopit/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-stopit/package.py b/var/spack/repos/builtin/packages/py-stopit/package.py new file mode 100644 index 0000000000..5fd754d278 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-stopit/package.py @@ -0,0 +1,21 @@ +# 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 PyStopit(PythonPackage): + """ + Raise asynchronous exceptions in other threads, control the timeout of + blocks or callables with two context managers and two decorators. + """ + + homepage = "https://pypi.org/project/stopit/" + url = "https://pypi.io/packages/source/s/stopit/stopit-1.1.2.tar.gz" + + version('1.1.2', sha256='f7f39c583fd92027bd9d06127b259aee7a5b7945c1f1fa56263811e1e766996d') + + depends_on('python@2.6:2.8,3.3:', type=('build', 'run')) + depends_on('py-setuptools', type='build') |