nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchPypi,
6 pytestCheckHook,
7 cython,
8 setuptools,
9 setuptools-scm,
10 wheel,
11 numpy,
12 scipy,
13 matplotlib,
14 networkx,
15 nibabel,
16}:
17
18buildPythonPackage rec {
19 pname = "nitime";
20 version = "0.12.1";
21 pyproject = true;
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-Esv0iLBlXcBaoYoMpZgt6XAwJgTkYfyS6H69m3U5tv8=";
26 };
27
28 nativeBuildInputs = [
29 cython
30 setuptools
31 setuptools-scm
32 wheel
33 ];
34
35 propagatedBuildInputs = [
36 numpy
37 scipy
38 matplotlib
39 networkx
40 nibabel
41 ];
42
43 nativeCheckInputs = [ pytestCheckHook ];
44
45 doCheck = !stdenv.hostPlatform.isDarwin; # tests hang indefinitely
46
47 pythonImportsCheck = [ "nitime" ];
48
49 meta = {
50 homepage = "https://nipy.org/nitime";
51 description = "Algorithms and containers for time-series analysis in time and spectral domains";
52 license = lib.licenses.bsd3;
53 maintainers = [ lib.maintainers.bcdarwin ];
54 };
55}