py-annoy: new package with version 1.17.1 (#34911)

* py-annoy: add 1.17.1

* add version specifier on dependency package
This commit is contained in:
Christopher Christofi 2023-01-15 01:21:56 +00:00 committed by GitHub
parent d4e714bb2e
commit f521c31657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,21 @@
# 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 PyAnnoy(PythonPackage):
"""Annoy (Approximate Nearest Neighbors Oh Yeah) is a C++ library with Python
bindings to search for points in space that are close to a given query point.
It also creates large read-only file-based data structures that are mmapped into
memory so that many processes may share the same data."""
homepage = "https://github.com/spotify/annoy"
pypi = "annoy/annoy-1.17.1.tar.gz"
version("1.17.1", sha256="bf177dbeafb81f63b2ac1e1246b1f26a2acc82e73ba46638734d29d8258122da")
depends_on("py-setuptools", type="build")
depends_on("py-nose@1:", type="build")