1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, pythonOlder
6, pytestCheckHook
7, cython
8, numpy
9, scipy
10, matplotlib
11, networkx
12, nibabel
13}:
14
15buildPythonPackage rec {
16 pname = "nitime";
17 version = "0.10.1";
18 disabled = pythonOlder "3.7";
19 format = "pyproject";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-NnoVrSt6MTTcNup1e+/1v5JoHCYcycuQH4rHLzXJt+Y=";
24 };
25
26 buildInputs = [ cython ];
27 propagatedBuildInputs = [ numpy scipy matplotlib networkx nibabel ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30 doCheck = !stdenv.isDarwin; # tests hang indefinitely
31 pythonImportsCheck = [ "nitime" ];
32
33 meta = with lib; {
34 homepage = "https://nipy.org/nitime";
35 description = "Algorithms and containers for time-series analysis in time and spectral domains";
36 license = licenses.bsd3;
37 maintainers = [ maintainers.bcdarwin ];
38 };
39}