mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
9f8ee9cffe
Caused by a stall substitute
51 lines
986 B
Nix
51 lines
986 B
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, scipy
|
|
, numba
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "numba-scipy";
|
|
version = "0.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-cApTGH5GJZH/RbkRjKhL3injvixD5kvfaS49FjrPA2U=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
scipy
|
|
numba
|
|
];
|
|
|
|
postPatch = ''
|
|
# https://github.com/numba/numba-scipy/pull/76
|
|
substituteInPlace setup.py \
|
|
--replace "scipy>=0.16,<=1.7.3" "scipy>=0.16"
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"numba_scipy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
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 ];
|
|
};
|
|
}
|