diff options
author | Naoki Pross <np@0hm.ch> | 2021-10-24 23:23:40 +0200 |
---|---|---|
committer | Naoki Pross <np@0hm.ch> | 2021-10-24 23:23:40 +0200 |
commit | af385473f8ab3c47024612635151bf0f98288f7d (patch) | |
tree | 412d14f42ace4a1cc279c08ed8814b900f78d7f2 /video/nix | |
parent | Create QPSK simulation without QT GUI (diff) | |
download | Fading-af385473f8ab3c47024612635151bf0f98288f7d.tar.gz Fading-af385473f8ab3c47024612635151bf0f98288f7d.zip |
Create TimeDependentComplexPlane tool for video
To draw a QAM signal we will need a way to plot a time dependent complex
function. So I made a thing that is just a complex plane + a time axis.
Diffstat (limited to 'video/nix')
-rw-r--r-- | video/nix/manimgl.nix | 30 | ||||
-rw-r--r-- | video/nix/manimpango.nix | 22 | ||||
-rw-r--r-- | video/nix/mapbox-earcut.nix | 25 |
3 files changed, 77 insertions, 0 deletions
diff --git a/video/nix/manimgl.nix b/video/nix/manimgl.nix new file mode 100644 index 0000000..cdab07e --- /dev/null +++ b/video/nix/manimgl.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/nix/manimpango.nix b/video/nix/manimpango.nix new file mode 100644 index 0000000..97b5e97 --- /dev/null +++ b/video/nix/manimpango.nix @@ -0,0 +1,22 @@ +{ lib, pkgs, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "ManimPango"; + version = "0.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "09fc7zv953ni7pilv869ldbjgz59j41a8vbz637rqzjh2yjfb9x3"; + }; + + nativeBuildInputs = with pkgs; [ + gcc pkgconfig + ]; + + propagatedBuildInputs = with pkgs; [ pango ] + ++ (with pkgs.python3Packages; [ + cython pytest numpy pillow + ]); + + meta = with lib; {}; +} diff --git a/video/nix/mapbox-earcut.nix b/video/nix/mapbox-earcut.nix new file mode 100644 index 0000000..d325401 --- /dev/null +++ b/video/nix/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; {}; +} |