1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, scipy
6, numba
7, pytestCheckHook
8, pythonOlder
9, pythonRelaxDepsHook
10}:
11
12buildPythonPackage rec {
13 pname = "numba-scipy";
14 version = "0.3.1";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-cApTGH5GJZH/RbkRjKhL3injvixD5kvfaS49FjrPA2U=";
22 };
23
24 propagatedBuildInputs = [
25 scipy
26 numba
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 pythonRelaxDepsHook
32 ];
33 pythonRelaxDeps = [
34 "scipy"
35 "numba"
36 ];
37
38 pythonImportsCheck = [
39 "numba_scipy"
40 ];
41
42 meta = with lib; {
43 broken = stdenv.isDarwin;
44 description = "Extends Numba to make it aware of SciPy";
45 homepage = "https://github.com/numba/numba-scipy";
46 changelog = "https://github.com/numba/numba-scipy/blob/master/CHANGE_LOG";
47 license = licenses.bsd2;
48 maintainers = with maintainers; [ Etjean ];
49 };
50}