Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 38 lines 656 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, bz2file 6, mock 7, nose 8, numpy 9, six 10}: 11 12buildPythonPackage rec { 13 pname = "nibabel"; 14 version = "2.5.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "07v1gsq1v43v0z06cnp82ij9sqx3972c9bc6vsdj7pa9ddpa2yjw"; 19 }; 20 21 propagatedBuildInputs = [ 22 numpy 23 six 24 ] ++ lib.optional (!isPy3k) bz2file; 25 26 checkInputs = [ nose mock ]; 27 28 checkPhase = '' 29 nosetests 30 ''; 31 32 meta = with lib; { 33 homepage = https://nipy.org/nibabel/; 34 description = "Access a multitude of neuroimaging data formats"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ ashgillman ]; 37 }; 38}