Skip to content

Commit

Permalink
python310Packages.blis: allow later numpy releases
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored and jsoo1 committed Dec 14, 2023
1 parent 2f49656 commit 64f2e3b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pkgs/development/python-modules/blis/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,27 @@
, hypothesis
, numpy
, pytest
, pythonOlder
}:

buildPythonPackage rec {
pname = "blis";
version = "0.9.1";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-fOrEZoAfnZfss04Q3e2MJM9eCSfqfoNNocydLtP8Nm8=";
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
];
Expand All @@ -24,16 +34,20 @@ buildPythonPackage rec {
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;
};
}

0 comments on commit 64f2e3b

Please sign in to comment.