From a9ecafce3265d56a92076b24739d34436ee792af Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Thu, 20 Jun 2024 18:33:50 +0200 Subject: [PATCH 1/2] maintainers: add autra --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 434758515514e..33d892a75bc30 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1983,6 +1983,12 @@ githubId = 12958979; name = "Mika Naylor"; }; + autra = { + email = "augustin.trancart@gmail.com"; + github = "autra"; + githubId = 1576598; + name = "Augustin Trancart"; + }; autrimpo = { email = "michal@koutensky.net"; github = "autrimpo"; From e7fd430bd4d3d192c784828d6896e78b4d122603 Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Thu, 20 Jun 2024 18:34:35 +0200 Subject: [PATCH 2/2] python3Packages.mathutils: init at 3.3.0 The main motivation is to fix ifcopenshell packages, because mathutils is now a dependency. --- .../python-modules/mathutils/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/mathutils/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 42562f4c3244c..090a68fe57dd0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7293,6 +7293,8 @@ self: super: with self; { mathlibtools = callPackage ../development/python-modules/mathlibtools { }; + mathutils = callPackage ../development/python-modules/mathutils { }; + matlink-gpapi = callPackage ../development/python-modules/matlink-gpapi { }; matplotlib = callPackage ../development/python-modules/matplotlib {