3
0
Fork 0
forked from mirrors/nixpkgs

termtosvg: init at 0.3.0 (#43069)

`termtosvg` makes screencasts and writes them into a SVG file. The app
can be used on CLI entirely.

Closes #42921
This commit is contained in:
Maximilian Bosch 2018-07-06 14:11:50 +02:00 committed by xeji
parent ec199f0941
commit e331236d57
2 changed files with 29 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -18423,6 +18423,8 @@ with pkgs;
vte = gnome3.vte-ng; vte = gnome3.vte-ng;
}; };
termtosvg = callPackage ../tools/misc/termtosvg { };
tesseract = callPackage ../applications/graphics/tesseract { }; tesseract = callPackage ../applications/graphics/tesseract { };
tesseract_4 = lowPrio (callPackage ../applications/graphics/tesseract/4.x.nix { }); tesseract_4 = lowPrio (callPackage ../applications/graphics/tesseract/4.x.nix { });