at master 922 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 pybind11, 7 setuptools, 8 wheel, 9 numpy, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "floret"; 15 version = "0.10.5"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "explosion"; 22 repo = "floret"; 23 tag = "v${version}"; 24 hash = "sha256-7vkw6H0ZQoHEwNusY6QWh/vPbSCdP1ZaaqABHsZH6hQ="; 25 }; 26 27 patches = [ ./cstdint.patch ]; 28 29 nativeBuildInputs = [ 30 pybind11 31 setuptools 32 wheel 33 ]; 34 35 propagatedBuildInputs = [ 36 numpy 37 pybind11 38 ]; 39 40 pythonImportsCheck = [ "floret" ]; 41 42 nativeCheckInputs = [ pytestCheckHook ]; 43 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 }; 50}