python39Packages.numba-scipy: update stale substituteInPlace

This commit is contained in:
Fabian Affolter 2022-05-23 19:13:10 +02:00
parent f2366ef1e2
commit 8278f5c3b0

View File

@ -4,15 +4,19 @@
, scipy
, numba
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "numba-scipy";
version = "0.3.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-qJeoWiG1LdtFB9cME1d8xVaC0BXGDJEYjCOEdHvSkmQ=";
hash = "sha256-qJeoWiG1LdtFB9cME1d8xVaC0BXGDJEYjCOEdHvSkmQ=";
};
propagatedBuildInputs = [
@ -21,14 +25,18 @@ buildPythonPackage rec {
];
postPatch = ''
substituteInPlace setup.py --replace "scipy>=0.16,<=1.6.2" "scipy>=0.16,<=1.7.3"
# https://github.com/numba/numba-scipy/pull/76
substituteInPlace setup.py \
--replace "scipy>=0.16,<=1.6.2" "scipy>=0.16"
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "numba" ];
pythonImportsCheck = [
"numba_scipy"
];
meta = with lib; {
description = "Extends Numba to make it aware of SciPy";