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