manim: move to python modules and use toPythonApplication

This commit is contained in:
Felix Andreas
2024-05-01 12:28:33 +02:00
parent 7001f74335
commit 4f0dbbd68b
5 changed files with 41 additions and 11 deletions
@@ -1,11 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-xdist
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, cairo
, ffmpeg
, texliveInfraOnly
, python3
, click
, click-default-group
, cloup
, colour
, grpcio
, grpcio-tools
, importlib-metadata
, isosurfaces
, jupyterlab
, manimpango
, mapbox-earcut
, moderngl
, moderngl-window
, networkx
, numpy
, pillow
, pycairo
, pydub
, pygments
, rich
, scipy
, screeninfo
, skia-pathops
, srt
, svgelements
, tqdm
, watchdog
}:
let
@@ -42,13 +74,11 @@ let
babel-english gnu-freefont mathastext cbfonts-fd
]);
python = python3;
in python.pkgs.buildPythonApplication rec {
in buildPythonPackage rec {
pname = "manim";
pyproject = true;
version = "0.18.1";
disabled = python3.pythonOlder "3.9";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "ManimCommunity";
@@ -57,7 +87,7 @@ in python.pkgs.buildPythonApplication rec {
hash = "sha256-o+Wl3NMK6yopcsRVFtZuUE9c1GABa5d8rbQNHDJ4OiQ=";
};
nativeBuildInputs = with python.pkgs; [
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
@@ -81,7 +111,7 @@ in python.pkgs.buildPythonApplication rec {
buildInputs = [ cairo ];
propagatedBuildInputs = with python.pkgs; [
propagatedBuildInputs = [
click
click-default-group
cloup
@@ -101,7 +131,6 @@ in python.pkgs.buildPythonApplication rec {
pycairo
pydub
pygments
pysrt
rich
scipy
screeninfo
@@ -122,10 +151,9 @@ in python.pkgs.buildPythonApplication rec {
nativeCheckInputs = [
ffmpeg
manim-tinytex
] ++ (with python.pkgs; [
pytest-xdist
pytestCheckHook
]);
];
# about 55 of ~600 tests failing mostly due to demand for display
disabledTests = import ./failing_tests.nix;
+1 -1
View File
@@ -31430,7 +31430,7 @@ with pkgs;
m32edit = callPackage ../applications/audio/midas/m32edit.nix { };
manim = callPackage ../applications/video/manim { };
manim = python3Packages.toPythonApplication python3Packages.manim;
manim-slides = python3Packages.toPythonApplication (
python3Packages.manim-slides.override {
+2
View File
@@ -7116,6 +7116,8 @@ self: super: with self; {
manhole = callPackage ../development/python-modules/manhole { };
manim = callPackage ../development/python-modules/manim { };
manimpango = callPackage ../development/python-modules/manimpango {
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
};