nixpkgs/pkgs/development/python-modules/nibabel/default.nix

39 lines
668 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, bz2file
, mock
2019-08-06 03:08:14 +01:00
, nose
, numpy
, six
}:
buildPythonPackage rec {
pname = "nibabel";
2019-10-16 10:43:10 +01:00
version = "2.5.1";
src = fetchPypi {
inherit pname version;
2019-10-16 10:43:10 +01:00
sha256 = "83ecac4773ece02c49c364d99b465644c17cc66f1719560117e74991d9eb566b";
};
propagatedBuildInputs = [
numpy
six
] ++ lib.optional (!isPy3k) bz2file;
checkInputs = [ nose mock ];
2019-08-06 03:08:14 +01:00
checkPhase = ''
nosetests
'';
meta = with lib; {
homepage = https://nipy.org/nibabel/;
description = "Access a multitude of neuroimaging data formats";
license = licenses.mit;
maintainers = with maintainers; [ ashgillman ];
};
}