1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 numpy,
6 pytest-repeat,
7 pytestCheckHook,
8 setuptools,
9 tabulate,
10}:
11
12buildPythonPackage rec {
13 pname = "simsimd";
14 version = "6.5.3";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "ashvardanian";
19 repo = "SimSIMD";
20 tag = "v${version}";
21 hash = "sha256-vEtMBpBoPbnBjGaxGw7ApGTJ8RFJ7vQcAH0DF4AOIEE=";
22 };
23
24 build-system = [
25 setuptools
26 ];
27
28 pythonImportsCheck = [
29 "simsimd"
30 ];
31
32 nativeCheckInputs = [
33 numpy
34 pytest-repeat
35 pytestCheckHook
36 tabulate
37 ];
38
39 enabledTestPaths = [
40 "scripts/test.py"
41 ];
42
43 meta = {
44 changelog = "https://github.com/ashvardanian/SimSIMD/releases/tag/${src.tag}";
45 description = "Portable mixed-precision BLAS-like vector math library for x86 and ARM";
46 homepage = "https://github.com/ashvardanian/SimSIMD";
47 license = with lib.licenses; [
48 asl20
49 # or
50 bsd3
51 ];
52 maintainers = with lib.maintainers; [ dotlambda ];
53 };
54}