nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
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 src = fetchFromGitHub {
18 owner = "explosion";
19 repo = "floret";
20 tag = "v${version}";
21 hash = "sha256-7vkw6H0ZQoHEwNusY6QWh/vPbSCdP1ZaaqABHsZH6hQ=";
22 };
23
24 patches = [ ./cstdint.patch ];
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 = [ pytestCheckHook ];
40
41 meta = {
42 description = "FastText + Bloom embeddings for compact, full-coverage vectors with spaCy";
43 homepage = "https://github.com/explosion/floret";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ GaetanLepage ];
46 };
47}