2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
scipy,
|
|
|
|
numba,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "numba-scipy";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.4.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;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-RDZF1mNcZnrcOzjQpjbZq8yXHnjeLAeAjYmvzXvFhEQ=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestCheckHook
|
2023-08-10 07:59:29 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"scipy"
|
|
|
|
"numba"
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|