about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-12-25 15:15:29 +0100
committerSamuel Ainsworth <skainsworth@gmail.com>2022-12-25 23:29:40 -0500
commitbf5ad98cce2535f09d8b4d7bd91600d1941986dc (patch)
treecaf80f603b44524e83f7e6d8cbad629cf8c6cfe2
parentfada67f065c60c84c9033b09562cdefecb665a7a (diff)
python310Packages.autofaiss: add changelog to meta
-rw-r--r--pkgs/development/python-modules/autofaiss/default.nix22
1 files changed, 19 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/autofaiss/default.nix b/pkgs/development/python-modules/autofaiss/default.nix
index a8ee4a298be8b..4d80fdcacfc91 100644
--- a/pkgs/development/python-modules/autofaiss/default.nix
+++ b/pkgs/development/python-modules/autofaiss/default.nix
@@ -9,11 +9,15 @@
 , pyarrow
 , pytestCheckHook
 , pythonRelaxDepsHook
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "autofaiss";
   version = "2.15.4";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.6";
 
   src = fetchFromGitHub {
     owner = "criteo";
@@ -22,7 +26,9 @@ buildPythonPackage rec {
     hash = "sha256-OnDHwJxJcXx3DGxrkk2D2Ljs4CqPoYx7avdo9C8sDrU=";
   };
 
-  nativeBuildInputs = [ pythonRelaxDepsHook ];
+  nativeBuildInputs = [
+    pythonRelaxDepsHook
+  ];
 
   pythonRemoveDeps = [
     # The `dataclasses` packages is a python2-only backport, unnecessary in
@@ -38,9 +44,18 @@ buildPythonPackage rec {
     "pyarrow"
   ];
 
-  propagatedBuildInputs = [ embedding-reader fsspec numpy faiss fire pyarrow ];
+  propagatedBuildInputs = [
+    embedding-reader
+    fsspec
+    numpy
+    faiss
+    fire
+    pyarrow
+  ];
 
-  checkInputs = [ pytestCheckHook ];
+  checkInputs = [
+    pytestCheckHook
+  ];
 
   disabledTests = [
     # Attempts to spin up a Spark cluster and talk to it which doesn't work in
@@ -54,6 +69,7 @@ buildPythonPackage rec {
   meta = with lib; {
     description = "Automatically create Faiss knn indices with the most optimal similarity search parameters";
     homepage = "https://github.com/criteo/autofaiss";
+    changelog = "https://github.com/criteo/autofaiss/blob/${version}/CHANGELOG.md";
     license = licenses.asl20;
     maintainers = with maintainers; [ samuela ];
   };