···22 lib,33 buildPythonPackage,44 fetchFromGitLab,55+ pythonAtLeast,5667 # build-system78 setuptools,89}:9101010-buildPythonPackage rec {1111+buildPythonPackage {1112 pname = "mathutils";1213 version = "3.3.0";1314 pyproject = true;···2019 hash = "sha256-c28kt2ADw4wHNLN0CBPcJU/kqm6g679QRaICk4WwaBc=";2120 };22212222+ # error: implicit declaration of function ‘_PyLong_AsInt’; did you mean ‘PyLong_AsInt’? [-Wimplicit-function-declaration]2323+ # https://github.com/python/cpython/issues/1084442424+ postPatch = lib.optionalString (pythonAtLeast "3.13") ''2525+ substituteInPlace src/generic/py_capi_utils.{c,h} \2626+ --replace-fail "_PyLong_AsInt" "PyLong_AsInt"2727+ '';2828+2329 build-system = [2430 setuptools2531 ];26322733 pythonImportsCheck = [ "mathutils" ];28342929- meta = with lib; {3030- description = "A general math utilities library providing Matrix, Vector, Quaternion, Euler and Color classes, written in C for speed";3535+ meta = {3636+ description = "General math utilities library providing Matrix, Vector, Quaternion, Euler and Color classes, written in C for speed";3137 homepage = "https://gitlab.com/ideasman42/blender-mathutils";3232- license = licenses.gpl2Plus;3333- maintainers = with maintainers; [ autra ];3838+ license = lib.licenses.gpl2Plus;3939+ maintainers = with lib.maintainers; [ autra ];3440 };3541}