summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-06-24 12:10:24 -0400
committerGitHub <noreply@github.com>2021-06-24 11:10:24 -0500
commitcf38a96b14ed2462645a8dc1348db0828f407775 (patch)
treecd739a456f84b44fa45e6cdd2f164d825879bfab /var
parentb1009b48b98219c89233aa46957d078666418324 (diff)
downloadspack-cf38a96b14ed2462645a8dc1348db0828f407775.tar.gz
spack-cf38a96b14ed2462645a8dc1348db0828f407775.tar.bz2
spack-cf38a96b14ed2462645a8dc1348db0828f407775.tar.xz
spack-cf38a96b14ed2462645a8dc1348db0828f407775.zip
New package: py-xxhash (#24493)
* [py-xxhash] created template * [py-xxhash] working on dependencies * [py-xxhash] set version for xxhash * [py-xxhash] Final cleanup - added homepage - added description - removed fixmes
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-xxhash/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-xxhash/package.py b/var/spack/repos/builtin/packages/py-xxhash/package.py
new file mode 100644
index 0000000000..a15d94cca3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-xxhash/package.py
@@ -0,0 +1,23 @@
+# 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 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"
+
+ version('2.0.2', sha256='b7bead8cf6210eadf9cecf356e17af794f57c0939a3d420a00d87ea652f87b49')
+
+ depends_on('python@2.6:2.999,3.3:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('xxhash@0.8.0')
+
+ def setup_build_environment(self, env):
+ env.set('XXHASH_LINK_SO', '1')