Subject: bug#64813: closed ([PATCH] gnu: Add python-manimpango.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 20 Jan 2024 21:43:02 +0000

Your bug report

#64813: [PATCH] gnu: Add python-manimpango.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64813: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64813
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [PATCH] gnu: Add python-manimpango.
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Sat, 20 Jan 2024 21:42:00 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

I've added Co-author-by Troy Figiel <[email-masked]>, updated home-page to
https://manimpango.manim.community/, applied G-Expressions package style.

Pushed as 782d69fb7f88eeb5ea470f365d8ecbc761dfa1ff

Thanks,
Oleg

Subject: [PATCH] gnu: Add python-manimpango.
From: "Wamm K. D" <[email-masked]>
To: [email-masked]
Cc: "Wamm K. D" <[email-masked]>
Date: Sun, 23 Jul 2023 15:57:25 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python-xyz.scm (python-manimpango): New variable.
---
 gnu/packages/python-xyz.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index db3e69fb45..14cb375a8a 100644

Right now, the tests are failing with "No module named 'manimpango.cmanimpango'";
it's clearly trying to import the package so it can use it for testing but the
test files are failing to find it (it looks like the "cmanimpango" file is a C
file (along with .pxd and .pyx files) so maybe it's Cython related?).

Is there a way we usually handle this for Python/Cython packages?
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -119,7 +119,7 @@
 ;;; Copyright © 2022 Evgeny Pisemsky <[email-masked]>
 ;;; Copyright © 2022 drozdov <[email-masked]>
 ;;; Copyright © 2022 Peter Polidoro <[email-masked]>
-;;; Copyright © 2022 Wamm K. D. <[email-masked]>
+;;; Copyright © 2022, 2023 Wamm K. D. <[email-masked]>
 ;;; Copyright © 2022 Jai Vetrivelan <[email-masked]>
 ;;; Copyright © 2022 Artyom V. Poptsov <[email-masked]>
 ;;; Copyright © 2022 Paul A. Patience <[email-masked]>
@@ -9292,6 +9292,26 @@ (define-public python-xcffib
 support for Python 3 and PyPy.  It is based on cffi.")
     (license license:expat)))
 
+(define-public python-manimpango
+  (package
+    (name "python-manimpango")
+    (version "0.4.3")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "ManimPango" version))
+              (sha256 (base32
+                       "00x1l55wy0k6v3b6l2g5603zk5d5dab59fwkxq6jq4ncifwiqbvk"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list pkg-config python-cython python-pytest))
+    (inputs (list pango))
+    (home-page "https://pypi.org/project/ManimPango/")
+    (synopsis "Bindings for Pango for using with Manim.")
+    (description "Python bindings for ManimPango which is a C binding for Pango,
+using Cython.
+
+ManimPango is internally used in Manim to render (non-LaTeX) text.")
+    (license license:expat)))
+
 (define-public python-cairocffi
   (package
     (name "python-cairocffi")
-- 
2.41.0