1{ lib
2, buildPythonPackage
3, fetchPypi
4, cython
5, enum34
6, gfortran
7, isPy27
8, isPy3k
9, numpy
10, pytest
11, python
12, scipy
13, sundials
14}:
15
16buildPythonPackage rec {
17 pname = "scikits.odes";
18 version = "2.6.5";
19
20 disabled = isPy27;
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "sha256-MP1pNkr0fAyWWVHJVHiaVEn1UsbVsjU9MZHHAQYtPYI=";
25 };
26
27 nativeBuildInputs = [
28 gfortran
29 cython
30 ];
31
32 propagatedBuildInputs = [
33 numpy
34 sundials
35 scipy
36 ] ++ lib.optionals (!isPy3k) [ enum34 ];
37
38 doCheck = true;
39 checkInputs = [ pytest ];
40
41 checkPhase = ''
42 cd $out/${python.sitePackages}/scikits/odes/tests
43 pytest
44 '';
45
46 meta = with lib; {
47 description = "A scikit offering extra ode/dae solvers, as an extension to what is available in scipy";
48 homepage = "https://github.com/bmcage/odes";
49 license = licenses.bsd3;
50 maintainers = with maintainers; [ idontgetoutmuch ];
51 platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ];
52 };
53}