summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/staticvectors/default.nix
blob: 793f80902a8c0f116bb999f9254528fbb7efd4d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  huggingface-hub,
  numpy,
  safetensors,
  tqdm,
}:

buildPythonPackage rec {
  pname = "staticvectors";
  version = "0.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "neuml";
    repo = "staticvectors";
    tag = "v${version}";
    hash = "sha256-p3m22qLxQYma0WtkTE/GzHXkxNHjatqLOdeHh4vtyVc=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    huggingface-hub
    numpy
    safetensors
    tqdm
  ];

  pythonImportsCheck = [ "staticvectors" ];

  # no tests
  doCheck = false;

  meta = {
    description = "Work with static vector models";
    homepage = "https://github.com/neuml/staticvectors";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}