eeb71630af
GitOrigin-RevId: 636051e353461f073ac55d5d42c1ed062a345046
53 lines
968 B
Nix
53 lines
968 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
, hypothesis
|
|
, numpy
|
|
, pytest
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "blis";
|
|
version = "0.9.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fOrEZoAfnZfss04Q3e2MJM9eCSfqfoNNocydLtP8Nm8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# See https://github.com/numpy/numpy/issues/21079
|
|
substituteInPlace blis/benchmark.py \
|
|
--replace "numpy.__config__.blas_ilp64_opt_info" "numpy.__config__.blas_opt_info"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
];
|
|
|
|
checkInputs = [
|
|
hypothesis
|
|
pytest
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"blis"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "BLAS-like linear algebra library";
|
|
homepage = "https://github.com/explosion/cython-blis";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.x86_64;
|
|
};
|
|
}
|