dev-python/nmslib - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-python/nmslib-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/nmslib-9999

Or alternatively:

emerge --autounmask-write -a =dev-python/nmslib-9999

Package Information

Description:
Non-Metric Space Library
Homepage:
https://github.com/nmslib/nmslib
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1 git-r3

DESCRIPTION="Non-Metric Space Library"
HOMEPAGE="https://github.com/nmslib/nmslib"
EGIT_REPO_URI="https://github.com/nmslib/${PN}.git"
S="${WORKDIR}/${P}/python_bindings"

LICENSE="Apache-2.0"
SLOT="0"
RESTRICT="test" # fails

RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
	dev-python/psutil[${PYTHON_USEDEP}]
	dev-python/pybind11[${PYTHON_USEDEP}]"
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

python_prepare_all() {
	# fix import
	sed -i '/sklearn.datasets/s|.samples_generator||' \
		notebooks/test_hnsw_recall.py || die "sed failed for test_hnsw_recall.py"

	distutils-r1_python_prepare_all
}

Inherited Eclasses

Dependencies

RDEPEND

dev-python/numpy[]
	dev-python/psutil[]
	dev-python/pybind11[]

BDEPEND

dev-python/cython[]