Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, numpy 6, six 7, bz2file 8, nose 9, mock 10}: 11 12buildPythonPackage rec { 13 pname = "nibabel"; 14 version = "2.3.3"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "b6366634c65b04464e62f3a9a8df1faa172f780ed7f1af1c6818b3dc2f1202c3"; 19 }; 20 21 propagatedBuildInputs = [ 22 numpy 23 six 24 ] ++ lib.optional (!isPy3k) bz2file; 25 26 checkInputs = [ nose mock ]; 27 28 checkPhase = let 29 excludeTests = lib.optionals isPy3k [ 30 # https://github.com/nipy/nibabel/issues/691 31 "nibabel.gifti.tests.test_giftiio.test_read_deprecated" 32 "nibabel.gifti.tests.test_parse_gifti_fast.test_parse_dataarrays" 33 "nibabel.tests.test_minc1.test_old_namespace" 34 ]; 35 # TODO: Add --with-doctest once all doctests pass 36 in '' 37 nosetests ${lib.concatMapStrings (test: "-e '${test}' ") excludeTests} 38 ''; 39 40 meta = with lib; { 41 homepage = http://nipy.org/nibabel/; 42 description = "Access a multitude of neuroimaging data formats"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ ashgillman ]; 45 }; 46}