1{ lib
2, buildPythonPackage
3, fetchPypi
4, cython
5, hypothesis
6, numpy
7, pytest
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "blis";
13 version = "0.9.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-fOrEZoAfnZfss04Q3e2MJM9eCSfqfoNNocydLtP8Nm8=";
21 };
22
23 postPatch = ''
24 # See https://github.com/numpy/numpy/issues/21079
25 substituteInPlace blis/benchmark.py \
26 --replace "numpy.__config__.blas_ilp64_opt_info" "numpy.__config__.blas_opt_info"
27 '';
28
29 nativeBuildInputs = [
30 cython
31 ];
32
33 propagatedBuildInputs = [
34 numpy
35 ];
36
37 checkInputs = [
38 hypothesis
39 pytest
40 ];
41
42 pythonImportsCheck = [
43 "blis"
44 ];
45
46 meta = with lib; {
47 description = "BLAS-like linear algebra library";
48 homepage = "https://github.com/explosion/cython-blis";
49 license = licenses.bsd3;
50 maintainers = with maintainers; [ ];
51 platforms = platforms.x86_64;
52 };
53}