1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pybind11
6, setuptools
7, wheel
8, numpy
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "floret";
14 version = "0.10.5";
15 pyproject = true;
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "explosion";
21 repo = "floret";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-7vkw6H0ZQoHEwNusY6QWh/vPbSCdP1ZaaqABHsZH6hQ=";
24 };
25
26 nativeBuildInputs = [
27 pybind11
28 setuptools
29 wheel
30 ];
31
32 propagatedBuildInputs = [
33 numpy
34 pybind11
35 ];
36
37 pythonImportsCheck = [ "floret" ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 ];
42
43 meta = with lib; {
44 description = "FastText + Bloom embeddings for compact, full-coverage vectors with spaCy";
45 homepage = "https://github.com/explosion/floret";
46 license = licenses.mit;
47 maintainers = with maintainers; [ GaetanLepage ];
48 };
49}