diff options
author | Naoki Pross <np@0hm.ch> | 2021-10-20 00:56:43 +0200 |
---|---|---|
committer | Naoki Pross <np@0hm.ch> | 2021-10-20 01:05:57 +0200 |
commit | 4db381faddee6e951aa76d5a64073d22fe23f314 (patch) | |
tree | a74849eb2a01d83b06a29e1d7764cf846a5d4121 /video/manimgl | |
parent | Theory mit PSK und QPSK angefangen. (diff) | |
download | Fading-4db381faddee6e951aa76d5a64073d22fe23f314.tar.gz Fading-4db381faddee6e951aa76d5a64073d22fe23f314.zip |
Prepare nix env for video
Diffstat (limited to '')
-rw-r--r-- | video/manimgl/default.nix | 30 | ||||
-rw-r--r-- | video/manimgl/mapbox-earcut.nix | 25 |
2 files changed, 55 insertions, 0 deletions
diff --git a/video/manimgl/default.nix b/video/manimgl/default.nix new file mode 100644 index 0000000..cdab07e --- /dev/null +++ b/video/manimgl/default.nix @@ -0,0 +1,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 = { }; +} diff --git a/video/manimgl/mapbox-earcut.nix b/video/manimgl/mapbox-earcut.nix new file mode 100644 index 0000000..d325401 --- /dev/null +++ b/video/manimgl/mapbox-earcut.nix @@ -0,0 +1,25 @@ +{ lib, pkgs, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "mapbox_earcut"; + version = "0.12.10"; + src = fetchPypi { + inherit pname version; + format = "setuptools"; + sha256 = "0ly48lijgd9inq07x42pfp9c24fn16vn9axpmfwqrkn979krbnah"; + }; + + dontUseCmakeConfigure = true; + + nativeBuildInputs = with pkgs; [ cmake ]; + + buildInputs = with pkgs.python3Packages; [ + setuptools_scm pybind11 + ]; + + propagatedBuildInputs = with pkgs.python3Packages; [ + numpy + ]; + + meta = with lib; {}; +} |