about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nitransforms
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2021-12-23 13:51:50 -0500
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-27 09:19:38 -0800
commitcb8f864487100698fd9ab50d618f6c3d5425b117 (patch)
treea0e30cd2f9450484b1e1e1ad366e1a177b2f5149 /pkgs/development/python-modules/nitransforms
parent9a98b3a7094019637fd6eaf451a310f3614b72e4 (diff)
python3Packages.nitransforms: init at 21.0.0
Diffstat (limited to 'pkgs/development/python-modules/nitransforms')
-rw-r--r--pkgs/development/python-modules/nitransforms/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nitransforms/default.nix b/pkgs/development/python-modules/nitransforms/default.nix
new file mode 100644
index 0000000000000..79fd93d321231
--- /dev/null
+++ b/pkgs/development/python-modules/nitransforms/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, h5py
+, nibabel
+, numpy
+, setuptools-scm
+, toml
+}:
+
+buildPythonPackage rec {
+  pname = "nitransforms";
+  version = "21.0.0";
+  disabled = pythonOlder "3.7";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "njJqHqXVxldyGfmdM8GmgKdgIT4kMYLzcM5+ayR2EDo=";
+  };
+
+  buildInputs = [ setuptools-scm toml ];
+  propagatedBuildInputs = [ h5py nibabel numpy ];
+
+  doCheck = false;
+  # relies on data repo (https://github.com/nipreps-data/nitransforms-tests);
+  # probably too heavy
+  pythonImportsCheck = [
+    "nitransforms"
+    "nitransforms.base"
+    "nitransforms.io"
+    "nitransforms.io.base"
+    "nitransforms.linear"
+    "nitransforms.manip"
+    "nitransforms.nonlinear"
+    "nitransforms.patched"
+  ];
+
+  meta = with lib; {
+    homepage = "https://nitransforms.readthedocs.io";
+    description = "Geometric transformations for images and surfaces";
+    license = licenses.mit;
+    maintainers = with maintainers; [ bcdarwin ];
+  };
+}