55 lines
995 B
Nix
55 lines
995 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
numpy,
|
|
pytest-repeat,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
tabulate,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simsimd";
|
|
version = "6.5.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ashvardanian";
|
|
repo = "SimSIMD";
|
|
tag = "v${version}";
|
|
hash = "sha256-vEtMBpBoPbnBjGaxGw7ApGTJ8RFJ7vQcAH0DF4AOIEE=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"simsimd"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
pytest-repeat
|
|
pytestCheckHook
|
|
tabulate
|
|
];
|
|
|
|
enabledTestPaths = [
|
|
"scripts/test.py"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/ashvardanian/SimSIMD/releases/tag/${src.tag}";
|
|
description = "Portable mixed-precision BLAS-like vector math library for x86 and ARM";
|
|
homepage = "https://github.com/ashvardanian/SimSIMD";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
# or
|
|
bsd3
|
|
];
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|