ntpd-rs: 1.3.0 -> 1.3.1 (#361213)
[NixPkgs.git] / pkgs / development / python-modules / floret / default.nix
blobb2e1099e201587168558d264129ac81941658c06
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   pybind11,
7   setuptools,
8   wheel,
9   numpy,
10   pytestCheckHook,
13 buildPythonPackage rec {
14   pname = "floret";
15   version = "0.10.5";
16   pyproject = true;
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "explosion";
22     repo = "floret";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-7vkw6H0ZQoHEwNusY6QWh/vPbSCdP1ZaaqABHsZH6hQ=";
25   };
27   patches = [ ./cstdint.patch ];
29   nativeBuildInputs = [
30     pybind11
31     setuptools
32     wheel
33   ];
35   propagatedBuildInputs = [
36     numpy
37     pybind11
38   ];
40   pythonImportsCheck = [ "floret" ];
42   nativeCheckInputs = [ pytestCheckHook ];
44   meta = with lib; {
45     description = "FastText + Bloom embeddings for compact, full-coverage vectors with spaCy";
46     homepage = "https://github.com/explosion/floret";
47     license = licenses.mit;
48     maintainers = with maintainers; [ GaetanLepage ];
49   };