depot/third_party/nixpkgs/pkgs/development/python-modules/floret/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
932 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pybind11,
setuptools,
wheel,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "floret";
version = "0.10.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "explosion";
repo = "floret";
rev = "refs/tags/v${version}";
hash = "sha256-7vkw6H0ZQoHEwNusY6QWh/vPbSCdP1ZaaqABHsZH6hQ=";
};
patches = [ ./cstdint.patch ];
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 ];
};
}