summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-fastrlock/package.py
blob: 4141ca63f69fa7e5afd194f23814548ccbafd4ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 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 install_options(self, spec, prefix):
        return ['--with-cython']