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