about summary refs log tree commit diff
path: root/pkgs/development/python-modules/scikits-odes/default.nix
blob: 7d2c270482e7b4d3f2fb9196c95afb1d147e0f92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  lib,
  buildPythonPackage,
  fetchPypi,
  cython,
  enum34,
  gfortran,
  isPy27,
  isPy3k,
  numpy,
  pytest,
  python,
  scipy,
  sundials,
}:

buildPythonPackage rec {
  pname = "scikits.odes";
  version = "2.7.0";

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-px4Z4UhYk3VK6MBQZoIy/MaU8XuDYC51++v3v5+XXh4=";
  };

  nativeBuildInputs = [
    gfortran
    cython
  ];

  propagatedBuildInputs = [
    numpy
    sundials
    scipy
  ] ++ lib.optionals (!isPy3k) [ enum34 ];

  doCheck = true;
  nativeCheckInputs = [ pytest ];

  checkPhase = ''
    cd $out/${python.sitePackages}/scikits/odes/tests
    pytest
  '';

  meta = with lib; {
    description = "Scikit offering extra ode/dae solvers, as an extension to what is available in scipy";
    homepage = "https://github.com/bmcage/odes";
    license = licenses.bsd3;
    maintainers = with maintainers; [ idontgetoutmuch ];
    platforms = [
      "aarch64-linux"
      "x86_64-linux"
      "x86_64-darwin"
    ];
  };
}