Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / nitransforms / default.nix
blobf4e8fbcdae07356845dc9af7e0077b3a0ba50454
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , pythonRelaxDepsHook
6 , h5py
7 , nibabel
8 , numpy
9 , scipy
10 , setuptools-scm
11 , toml
14 buildPythonPackage rec {
15   pname = "nitransforms";
16   version = "23.0.1";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-Lty4aPzSlwRJSqCXeIVICF+gudYqto1OS4cVZyrB2nY=";
22   };
24   nativeBuildInputs = [ pythonRelaxDepsHook ];
25   buildInputs = [ setuptools-scm toml ];
26   propagatedBuildInputs = [ h5py nibabel numpy scipy ];
28   pythonRelaxDeps = [ "scipy" ];
30   doCheck = false;
31   # relies on data repo (https://github.com/nipreps-data/nitransforms-tests);
32   # probably too heavy
33   pythonImportsCheck = [
34     "nitransforms"
35     "nitransforms.base"
36     "nitransforms.io"
37     "nitransforms.io.base"
38     "nitransforms.linear"
39     "nitransforms.manip"
40     "nitransforms.nonlinear"
41     "nitransforms.patched"
42   ];
44   meta = with lib; {
45     homepage = "https://nitransforms.readthedocs.io";
46     description = "Geometric transformations for images and surfaces";
47     changelog = "https://github.com/nipy/nitransforms/releases/tag/${version}";
48     license = licenses.mit;
49     maintainers = with maintainers; [ bcdarwin ];
50   };