mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
e331236d57
`termtosvg` makes screencasts and writes them into a SVG file. The app can be used on CLI entirely. Closes #42921
28 lines
728 B
Nix
28 lines
728 B
Nix
{ 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 ];
|
|
};
|
|
}
|