aboutsummaryrefslogtreecommitdiffstats
path: root/video/nix/manimgl.nix
blob: cdab07ef8509736b3bbdca853b8b85d4b94a2636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, pkgs, buildPythonApplication, buildPythonPackage, fetchPypi, pythonOlder,
  manimpango, mapbox-earcut }:

buildPythonApplication rec {
  pname = "manimgl";
  version = "1.2.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1bsrn72vjzfz3ldh3cjn9r2gxr18408ja2shz50qwh7jnwi8alyb";
  };

  preConfigure = ''
  sed -i '/argparse/d' manimgl.egg-info/requires.txt
  sed -i '/argparse/d' setup.cfg
  '';

  doCheck = false;

  propagatedBuildInputs = [ manimpango mapbox-earcut ] ++ (with pkgs; [
    texlive.combined.scheme-full ffmpeg
  ]) ++ (with pkgs.python3Packages; [
    cython sympy numpy pydub scipy pyyaml pyopengl pyopengl-accelerate moderngl moderngl-window
    matplotlib colour rich screeninfo tqdm validators
  ]);

  disabled = pythonOlder "3.7";

  meta = { };
}