diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-31 23:17:49 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-11-01 00:15:54 +0100 |
commit | 0350dfba7ae153f4d4eb87d0d96fb756904091ac (patch) | |
tree | 749eb7d9fbfd6742b821ad59cbf5caafd702584a /pkgs/development/python-modules/blis | |
parent | 4d09321054006ab58293f4ecd8fcab7bb78c3690 (diff) |
python310Packages.blis: allow later numpy releases
Diffstat (limited to 'pkgs/development/python-modules/blis')
-rw-r--r-- | pkgs/development/python-modules/blis/default.nix | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/blis/default.nix b/pkgs/development/python-modules/blis/default.nix index c935c3728b014..68351bd829434 100644 --- a/pkgs/development/python-modules/blis/default.nix +++ b/pkgs/development/python-modules/blis/default.nix @@ -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 ]; @@ -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; }; } |