summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorGaetan Lepage <gaetan@glepage.com>2023-10-25 22:20:33 +0200
committerGaetan Lepage <gaetan@glepage.com>2023-10-25 22:20:33 +0200
commit2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad (patch)
tree7ff660b44d350e9475d6ff617f4cdfd4535e52d4 /pkgs/development/python-modules
parent99a2f18af91f436a2041f9b19c66fd541abf2440 (diff)
downloadnixpkgs-2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad.tar
nixpkgs-2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad.tar.gz
nixpkgs-2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad.tar.bz2
nixpkgs-2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad.tar.lz
nixpkgs-2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad.tar.xz
nixpkgs-2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad.tar.zst
nixpkgs-2dc5e3f9e5ed850c76fb948b8393f81a9e76a5ad.zip
python311Packages.floret: init at 0.10.4
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/floret/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/floret/default.nix b/pkgs/development/python-modules/floret/default.nix
new file mode 100644
index 00000000000..08f59292a20
--- /dev/null
+++ b/pkgs/development/python-modules/floret/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, pybind11
+, setuptools
+, wheel
+, numpy
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "floret";
+  version = "0.10.4";
+  pyproject = true;
+
+  disabled = pythonOlder "3.9";
+
+  src = fetchFromGitHub {
+    owner = "explosion";
+    repo = "floret";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-cOVyvRwprR7SvZjH4rtDK8uifv6+JGyRR7XYzOP5NLk=";
+  };
+
+  nativeBuildInputs = [
+    pybind11
+    setuptools
+    wheel
+  ];
+
+  propagatedBuildInputs = [
+    numpy
+    pybind11
+  ];
+
+  pythonImportsCheck = [ "floret" ];
+
+  nativeCheckInputs = [
+    pytestCheckHook
+  ];
+
+  meta = with lib; {
+    description = "FastText + Bloom embeddings for compact, full-coverage vectors with spaCy";
+    homepage = "https://github.com/explosion/floret";
+    license = licenses.mit;
+    maintainers = with maintainers; [ GaetanLepage ];
+  };
+}