diff --git a/pkgs/tools/misc/termtosvg/default.nix b/pkgs/tools/misc/termtosvg/default.nix new file mode 100644 index 000000000000..65b1f71194ac --- /dev/null +++ b/pkgs/tools/misc/termtosvg/default.nix @@ -0,0 +1,27 @@ +{ lib, python3, fetchFromGitHub }: + +python3.pkgs.buildPythonApplication rec { + pname = "termtosvg"; + version = "0.3.0"; + + # tests are not available when fetching from pypi + src = fetchFromGitHub { + owner = "nbedos"; + repo = pname; + rev = version; + sha256 = "09hw0467pyfj5gwn3768b3rvs5ch3wb1kaax7zsqjd7mw2qh0cjw"; + }; + + propagatedBuildInputs = with python3.pkgs; [ svgwrite pyte ]; + + checkInputs = [ python3.pkgs.mock ]; + preCheck = "export HOME=$(mktemp -d)"; + postCheck = "unset HOME"; + + meta = with lib; { + homepage = https://github.com/nbedos/termtosvg; + description = "Record terminal sessions as SVG animations"; + license = licenses.bsd3; + maintainers = with maintainers; [ ma27 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b2929ef33863..a2f78782e6ab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18423,6 +18423,8 @@ with pkgs; vte = gnome3.vte-ng; }; + termtosvg = callPackage ../tools/misc/termtosvg { }; + tesseract = callPackage ../applications/graphics/tesseract { }; tesseract_4 = lowPrio (callPackage ../applications/graphics/tesseract/4.x.nix { });