Glaxnimate: fix plugins and export to gif

authored by Tobias Bora and committed by Manuel Bärenz 3be80fbf d243b132

+28 -4
+28 -4
pkgs/applications/video/glaxnimate/default.nix
··· 11 11 , qttools 12 12 , wrapQtAppsHook 13 13 , testers 14 - , glaxnimate 14 + , qtsvg 15 + , qtimageformats 16 + , glaxnimate # Call itself, for the tests 15 17 }: 16 - 18 + let 19 + # TODO: try to add a python library, see toPythonModule in doc/languages-frameworks/python.section.md 20 + python3WithLibs = python3.withPackages (ps: with ps; [ 21 + # In data/lib/python-lottie/requirements.txt 22 + numpy 23 + pillow 24 + cairosvg 25 + fonttools 26 + grapheme 27 + opencv4 28 + pyqt5 29 + qscintilla 30 + # Not sure if needed, but appears in some files 31 + pyyaml 32 + requests 33 + pybind11 34 + ]); 35 + in 17 36 stdenv.mkDerivation rec { 18 37 pname = "glaxnimate"; 19 38 version = "0.5.1"; ··· 36 55 # Upstream asks for libav dependency, which is fulfilled by ffmpeg 37 56 ffmpeg 38 57 libarchive 39 - python3 40 58 qtbase 41 59 qttools 60 + qtsvg 61 + qtimageformats 62 + python3WithLibs 42 63 ]; 43 64 44 - passthru.tests.version = testers.testVersion { 65 + qtWrapperArgs = [ ''--prefix PATH : ${python3WithLibs}/bin'' ]; 66 + 67 + passthru.tests.version = testers.testVersion { 45 68 package = glaxnimate; 46 69 command = "glaxnimate --version"; 47 70 }; 71 + 48 72 meta = with lib; { 49 73 homepage = "https://gitlab.com/mattbas/glaxnimate"; 50 74 description = "Simple vector animation program.";