diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-pynisher/package.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pynisher/package.py b/var/spack/repos/builtin/packages/py-pynisher/package.py new file mode 100644 index 0000000000..2892b1fa77 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pynisher/package.py @@ -0,0 +1,20 @@ +# 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 PyPynisher(PythonPackage): + """A small Python library to limit the resources used by a + function by executing it inside a subprocess.""" + + homepage = "https://github.com/automl/pynisher" + pypi = "pynisher/pynisher-0.6.4.tar.gz" + + version('0.6.4', sha256='111d91aad471375c0509a912415ff90053ef909100facf412511383af107c124') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-psutil', type=('build', 'run')) |