blob: 6b2110d85deed08081f71c14a8c1eef36796c0ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright 2013-2024 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 PyXxhash(PythonPackage):
"""xxhash is a Python binding for the xxHash library by
Yann Collet."""
homepage = "https://github.com/ifduyue/python-xxhash"
pypi = "xxhash/xxhash-2.0.2.tar.gz"
license("BSD-2-Clause")
version("3.2.0", sha256="1afd47af8955c5db730f630ad53ae798cf7fae0acb64cebb3cf94d35c47dd088")
version("2.0.2", sha256="b7bead8cf6210eadf9cecf356e17af794f57c0939a3d420a00d87ea652f87b49")
depends_on("python@2.6:2,3.3:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-setuptools@45:", type="build", when="@3.2.0:")
depends_on("py-setuptools-scm@6.2:", type="build", when="@3.2.0:")
depends_on("xxhash@0.8:")
def setup_build_environment(self, env):
env.set("XXHASH_LINK_SO", "1")
|