From 14451543aa914df8e9fd2d23e258668c808bc480 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 18 Mar 2025 20:40:31 +0300 Subject: [PATCH 1/2] python312Packages.manim: fix build --- .../python-modules/manim/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/manim/default.nix b/pkgs/development/python-modules/manim/default.nix index c5cf6b8408e0..fb0ec500aac6 100644 --- a/pkgs/development/python-modules/manim/default.nix +++ b/pkgs/development/python-modules/manim/default.nix @@ -183,6 +183,16 @@ let cbfonts-fd ] ); + # https://github.com/ManimCommunity/manim/pull/4037 + av_13_1 = av.overridePythonAttrs (rec { + version = "13.1.0"; + src = fetchFromGitHub { + owner = "PyAV-Org"; + repo = "PyAV"; + tag = "v${version}"; + hash = "sha256-x2a9SC4uRplC6p0cD7fZcepFpRidbr6JJEEOaGSWl60="; + }; + }); in buildPythonPackage rec { pname = "manim"; @@ -206,7 +216,7 @@ buildPythonPackage rec { buildInputs = [ cairo ]; dependencies = [ - av + av_13_1 beautifulsoup4 click cloup @@ -268,8 +278,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "manim" ]; meta = { - # https://github.com/ManimCommunity/manim/pull/4037 - broken = lib.versionAtLeast av.version "14"; description = "Animation engine for explanatory math videos - Community version"; longDescription = '' Manim is an animation engine for explanatory math videos. It's used to @@ -277,9 +285,10 @@ buildPythonPackage rec { 3Blue1Brown on YouTube. This is the community maintained version of manim. ''; + mainProgram = "manim"; changelog = "https://docs.manim.community/en/latest/changelog/${version}-changelog.html"; homepage = "https://github.com/ManimCommunity/manim"; license = lib.licenses.mit; - maintainers = [ ]; + maintainers = with lib.maintainers; [ osbm ]; }; } From 21840efad387b8dbd1bd63d6a11e9ac84a52676a Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 19 Mar 2025 04:16:42 +0300 Subject: [PATCH 2/2] python3Packages.manim-slides: remove dependency --- pkgs/development/python-modules/manim-slides/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python-modules/manim-slides/default.nix b/pkgs/development/python-modules/manim-slides/default.nix index fba53e41110f..d2c197a92e47 100644 --- a/pkgs/development/python-modules/manim-slides/default.nix +++ b/pkgs/development/python-modules/manim-slides/default.nix @@ -9,7 +9,6 @@ manim, ffmpeg, - av, beautifulsoup4, click, click-default-group, @@ -59,7 +58,6 @@ buildPythonPackage rec { dependencies = [ - av beautifulsoup4 click click-default-group