diff --git a/pkgs/development/python-modules/nibabel/default.nix b/pkgs/development/python-modules/nibabel/default.nix new file mode 100644 index 000000000000..5aba6ffd71ec --- /dev/null +++ b/pkgs/development/python-modules/nibabel/default.nix @@ -0,0 +1,37 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, numpy +, nose +, six +}: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "nibabel"; + version = "2.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1h6nhi1s2ab7sdyyl3qjnvlw0kggcnam7vn4b3z56ay20596kvhw"; + }; + + propagatedBuildInputs = [ + numpy + nose + six + ]; + + # Failing tests + # nibabel.tests.test_minc1.test_old_namespace + # nibabel.gifti.tests.test_parse_gifti_fast.test_parse_dataarrays + # nibabel.gifti.tests.test_giftiio.test_read_deprecated + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://nipy.org/nibabel/; + description = "Access a multitude of neuroimaging data formats"; + license = licenses.mit; + maintainers = with maintainers; [ ashgillman ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7687f735bee4..be92851919c0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11334,32 +11334,7 @@ in { }; }); - nibabel = buildPythonPackage rec { - version = "2.2.0"; - name = "nibabel-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/n/nibabel/${name}.tar.gz"; - sha256 = "1h6nhi1s2ab7sdyyl3qjnvlw0kggcnam7vn4b3z56ay20596kvhw"; - }; - - propagatedBuildInputs = with self; [ - numpy - nose - six - ]; - - # Failing tests - # nibabel.tests.test_minc1.test_old_namespace - # nisext.tests.test_testers.test_back_tick - doCheck = false; - - meta = { - homepage = http://nipy.org/nibabel/; - description = "Access a multitude of neuroimaging data formats"; - license = licenses.mit; - }; - }; + nibabel = callPackage ../development/python-modules/nibabel {}; nilearn = callPackage ../development/python-modules/nilearn {};