2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-03-05 16:20:37 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "numba-scipy";
|
|
|
|
version = "0.3.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-qJeoWiG1LdtFB9cME1d8xVaC0BXGDJEYjCOEdHvSkmQ=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-06-16 17:23:12 +00:00
|
|
|
# https://github.com/numba/numba-scipy/pull/76
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "scipy>=0.16,<=1.6.2" "scipy>=0.16"
|
2022-03-05 16:20:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"numba_scipy"
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "Extends Numba to make it aware of SciPy";
|
|
|
|
homepage = "https://github.com/numba/numba-scipy";
|
|
|
|
changelog = "https://github.com/numba/numba-scipy/blob/master/CHANGE_LOG";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ Etjean ];
|
|
|
|
};
|
|
|
|
}
|