Files
nixpkgs/pkgs/development/python-modules/faiss/pytest.nix
T
Michael Daniels 5ed07317e9 treewide: change 'format = "other";' to 'pyproject = false;'
Entirely find-and-replace based.

A few usages that would cause rebuilds if changed remain.

This PR should have 0 rebuilds.
2026-01-12 17:50:37 -05:00

41 lines
698 B
Nix

{
lib,
buildPythonPackage,
faiss,
faiss-build,
scipy,
pytestCheckHook,
}:
assert faiss.pythonSupport;
buildPythonPackage {
pname = "faiss-pytest-suite";
inherit (faiss) version;
pyproject = false;
src = "${faiss-build.src}/tests";
dontBuild = true;
dontInstall = true;
# Tests that need GPUs and would fail in the sandbox
disabledTestPaths = lib.optionals faiss.cudaSupport [ "test_contrib.py" ];
disabledTests = [
# https://github.com/facebookresearch/faiss/issues/2836
"test_update_codebooks_with_double"
];
nativeCheckInputs = [
faiss
pytestCheckHook
scipy
];
meta = faiss.meta // {
description = "Faiss test suite";
};
}