about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mathutils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/mathutils/default.nix')
-rw-r--r--pkgs/development/python-modules/mathutils/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mathutils/default.nix b/pkgs/development/python-modules/mathutils/default.nix
new file mode 100644
index 0000000000000..97442eba2b855
--- /dev/null
+++ b/pkgs/development/python-modules/mathutils/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitLab
+
+# build-system
+, setuptools
+}:
+
+buildPythonPackage rec {
+  pname = "mathutils";
+  version = "3.3.0";
+  pyproject = true;
+
+  src = fetchFromGitLab {
+    owner = "ideasman42";
+    repo = "blender-mathutils";
+    rev = "d63d623a9e580a567eb6acb7dbed7cad0e4f8c28";
+    hash = "sha256-c28kt2ADw4wHNLN0CBPcJU/kqm6g679QRaICk4WwaBc=";
+  };
+
+  build-system = [
+    setuptools
+  ];
+
+  pythonImportsCheck = [ "mathutils" ];
+
+  meta = with lib; {
+    description = "A general math utilities library providing Matrix, Vector, Quaternion, Euler and Color classes, written in C for speed";
+    homepage = "https://gitlab.com/ideasman42/blender-mathutils";
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ autra ];
+  };
+}