16 buildPythonPackage rec {
21 disabled = pythonOlder "3.9";
23 src = fetchFromGitHub {
26 rev = "refs/tags/release-v${version}";
27 hash = "sha256-8JaQgTda1EBiZdSrZtKwJ8e/aDENQ+dMmTiH/t1ax5I=";
31 # The commit pinning numpy to version 2 doesn't have any functional changes:
32 # https://github.com/explosion/cython-blis/pull/108
33 # BLIS should thus work with numpy and numpy_2.
34 substituteInPlace pyproject.toml setup.py \
35 --replace-fail "numpy>=2.0.0,<3.0.0" numpy
37 # See https://github.com/numpy/numpy/issues/21079
38 # has no functional difference as the name is only used in log output
39 substituteInPlace blis/benchmark.py \
40 --replace-fail 'numpy.__config__.blas_ilp64_opt_info["libraries"]' '["dummy"]'
44 # remove src module, so tests use the installed module instead
54 dependencies = [ numpy ];
61 pythonImportsCheck = [ "blis" ];
65 numpy_2 = blis.overridePythonAttrs (old: {
69 updateScript = gitUpdater {
70 rev-prefix = "release-v";
75 changelog = "https://github.com/explosion/cython-blis/releases/tag/release-v${version}";
76 description = "BLAS-like linear algebra library";
77 homepage = "https://github.com/explosion/cython-blis";
78 license = licenses.bsd3;
79 maintainers = with maintainers; [ nickcao ];