Files
nixpkgs/pkgs/development/python-modules/staticvectors/default.nix
2025-05-22 14:20:43 +02:00

51 lines
838 B
Nix

{
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 ];
};
}