diff options
author | Jen Herting <jen@herting.cc> | 2020-10-22 15:55:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 14:55:14 -0500 |
commit | 32a68fbbd4186a513aecdc42026d797ff8410496 (patch) | |
tree | 01cfb54f9653b5cb621153f421aaf95b741d4e03 | |
parent | e4ce123ddf7541ed3b3489c991a4f6ac0735283e (diff) | |
download | spack-32a68fbbd4186a513aecdc42026d797ff8410496.tar.gz spack-32a68fbbd4186a513aecdc42026d797ff8410496.tar.bz2 spack-32a68fbbd4186a513aecdc42026d797ff8410496.tar.xz spack-32a68fbbd4186a513aecdc42026d797ff8410496.zip |
New Package: py-fastrlock (#19467)
* [py-fastrlock] created template
* [py-fastrlock] added dependencies and setting --with-cython
* [py-fastrlock] added homepage and description. removed fixmes
-rw-r--r-- | var/spack/repos/builtin/packages/py-fastrlock/package.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-fastrlock/package.py b/var/spack/repos/builtin/packages/py-fastrlock/package.py new file mode 100644 index 0000000000..83825227c5 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-fastrlock/package.py @@ -0,0 +1,24 @@ +# 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 PyFastrlock(PythonPackage): + """This is a C-level implementation of a fast, re-entrant, + optimistic lock for CPython.""" + + homepage = "https://github.com/scoder/fastrlock" + url = "https://github.com/scoder/fastrlock/archive/0.5.tar.gz" + + version('0.5', sha256='756dd8aa9af9848caa9bbf814c4dec1065ee38cc38768158e616ec11b6f45cc8') + + depends_on('py-setuptools', type='build') + depends_on('py-cython', type='build') + + def build_args(self, spec, prefix): + args = [] + args.append('--with-cython') + return args |