1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 huggingface-hub,
11 numpy,
12 safetensors,
13 tqdm,
14}:
15
16buildPythonPackage rec {
17 pname = "staticvectors";
18 version = "0.2.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "neuml";
23 repo = "staticvectors";
24 tag = "v${version}";
25 hash = "sha256-p3m22qLxQYma0WtkTE/GzHXkxNHjatqLOdeHh4vtyVc=";
26 };
27
28 build-system = [
29 setuptools
30 ];
31
32 dependencies = [
33 huggingface-hub
34 numpy
35 safetensors
36 tqdm
37 ];
38
39 pythonImportsCheck = [ "staticvectors" ];
40
41 # no tests
42 doCheck = false;
43
44 meta = {
45 description = "Work with static vector models";
46 homepage = "https://github.com/neuml/staticvectors";
47 license = lib.licenses.asl20;
48 maintainers = with lib.maintainers; [ GaetanLepage ];
49 };
50}