summary refs log tree commit diff
path: root/pkgs/development/python-modules/nitime/default.nix
blob: b61c3d92bc9fc072a9efaab28e15793637f776ff (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
{ lib
, buildPythonPackage
, python
, fetchPypi
, pytest
, cython
, numpy
, scipy
, matplotlib
, networkx
, nibabel
}:

buildPythonPackage rec {
  pname = "nitime";
  version = "0.8.1";
  disabled = python.pythonVersion != "3.7";  # gcc error when running Cython with Python 3.8

  src = fetchPypi {
    inherit pname version;
    sha256 = "0hb3x5196z2zaawb8s7lhja0vd3n983ncaynqfl9qg315x9ax7i6";
  };

  checkInputs = [ pytest ];
  buildInputs = [ cython ];
  propagatedBuildInputs = [ numpy scipy matplotlib networkx nibabel ];

  checkPhase = "pytest nitime/tests";

  meta = with lib; {
    homepage = https://nipy.org/nitime;
    description = "Algorithms and containers for time-series analysis in time and spectral domains";
    license = licenses.bsd3;
    maintainers = [ maintainers.bcdarwin ];
  };
}