From patchwork Sat Jan 1 23:51:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-Patchwork-Id: 35879 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 90FD427BBEA; Sat, 1 Jan 2022 23:55:01 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 10C9427BBE9 for ; Sat, 1 Jan 2022 23:55:01 +0000 (GMT) Received: from localhost ([::1]:44964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3oDE-0007m1-7g for patchwork@mira.cbaines.net; Sat, 01 Jan 2022 18:55:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3oBP-0005XF-6T for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3oBO-0008BN-Sl for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3oBO-000393-SA for guix-patches@gnu.org; Sat, 01 Jan 2022 18:53:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH v3 12/12] gnu: Add python-manim 0.9.0. Resent-From: Daniel =?utf-8?q?Mei=C3=9Fner?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jan 2022 23:53:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50505 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50505@debbugs.gnu.org Cc: Daniel =?utf-8?q?Mei=C3=9Fner?= , Xinglu Chen , Liliana Marie Prikler Received: via spool by 50505-submit@debbugs.gnu.org id=B50505.164108116111969 (code B ref 50505); Sat, 01 Jan 2022 23:53:06 +0000 Received: (at 50505) by debbugs.gnu.org; 1 Jan 2022 23:52:41 +0000 Received: from localhost ([127.0.0.1]:59610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3oAz-00036u-49 for submit@debbugs.gnu.org; Sat, 01 Jan 2022 18:52:41 -0500 Received: from out2.mail.ruhr-uni-bochum.de ([134.147.42.229]:54682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3oAw-00035h-F1 for 50505@debbugs.gnu.org; Sat, 01 Jan 2022 18:52:38 -0500 Received: from mx2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out2.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4JRJhw72qWz8SM7; Sun, 2 Jan 2022 00:52:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1641081153; bh=T5ZKPRuvbT8VRjtHOLEAKvSrsgTPsocCJcXryDF6wH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=upZ9jaiDmoMtRMo1raGZsRRJU0YWuuPAeIfBOngwIDHQVvVWmQ4+zfmFKsZLkXke1 OreWPW6WFy/q3W2+u/3fSzuzjFFGsAKvU6ujQFQ/tEldpOeDYmIFkK0Cz1CkGWmSTT Uv3rlXZNQZx3AGco9SJSPOLxSWeO69fqWMKKwgT8= Received: from out2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx2.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4JRJhw6MHqz8SKZ; Sun, 2 Jan 2022 00:52:32 +0100 (CET) X-Envelope-Sender: X-RUB-Notes: Internal origin=134.147.42.236 Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [134.147.42.236]) by out2.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4JRJhw50rRz8SKB; Sun, 2 Jan 2022 00:52:32 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mx2.mail.ruhr-uni-bochum.de Received: from think.local (dslb-002-204-223-044.002.204.pools.vodafone-ip.de [2.204.223.44]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4JRJhw38FWzDgyf; Sun, 2 Jan 2022 00:52:32 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mail2.mail.ruhr-uni-bochum.de Date: Sun, 2 Jan 2022 00:51:55 +0100 Message-Id: <20220101235155.5754-13-daniel.meissner-i4k@ruhr-uni-bochum.de> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220101235155.5754-1-daniel.meissner-i4k@ruhr-uni-bochum.de> References: <20220101235155.5754-1-daniel.meissner-i4k@ruhr-uni-bochum.de> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Daniel =?utf-8?q?Mei=C3=9Fner?= X-ACL-Warn: , =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= X-Patchwork-Original-From: =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= via From: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-science.scm (python-manim): New variable. --- gnu/packages/python-science.scm | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 61628ec956..ce451a3d28 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -37,6 +37,7 @@ (define-module (gnu packages python-science) #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages check) + #:use-module (gnu packages cmake) #:use-module (gnu packages databases) #:use-module (gnu packages gcc) #:use-module (gnu packages gtk) @@ -56,6 +57,7 @@ (define-module (gnu packages python-science) #:use-module (gnu packages sphinx) #:use-module (gnu packages statistics) #:use-module (gnu packages time) + #:use-module (gnu packages video) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -1063,3 +1065,62 @@ (define-public python-manimpango "These are Python bindings for Pango to be used with the mathematical animation software Manim.") (license license:gpl3+))) + +(define-public python-manim + (package + (name "python-manim") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "manim" version)) + (sha256 + (base32 + "0ksp57wcy45xkjips5i4wwm690mhbs2dmlcgsbmiwx78mfk4z0r3")))) + (build-system python-build-system) + (arguments '(#:phases + (modify-phases %standard-phases + (add-before 'build 'fix-ffmpeg-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* '("manim/constants.py") + (("FFMPEG_BIN: str = \"ffmpeg") + (string-append "FFMPEG_BIN: str = \"" + (search-input-file inputs "/bin/ffmpeg")))))) + ;; PyPI package contains no tests for manim but the + ;; setup.py test command fails, so remove it + (delete 'check)))) + (propagated-inputs + (list python-click + python-click-default-group + python-cloup-0.7 + python-colour + python-decorator + python-manimpango + python-mapbox-earcut + python-moderngl + python-moderngl-window + python-networkx + python-numpy + python-pillow + python-pycairo + python-pydub + python-pygments + python-requests + python-rich + python-scipy + python-screeninfo-0.6 + python-tqdm + python-watchdog)) + (inputs + (list ffmpeg)) + (native-inputs + (list python-wheel)) + (home-page "https://www.manim.community/") + (synopsis + "Python animation engine for explanatory math videos") + (description + "Manim is a Python library for creating mathematical animations. The +animations are written as Python code which is based on predefined objects. +You can make animations with maths formulas (LaTeX-based), simple shapes, 3D +objects, function graphs and more.") + (license license:expat)))