summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-07-06 14:11:50 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-07-06 14:11:50 +0200
commite331236d5716a89b6c04d8f64e4d18f34b856756 (patch)
tree35be3d89aa62c03f34a4cdd2796d7cd2ea15022f /pkgs/tools/misc
parentec199f0941062ec33c5041fb8fccd53c17622978 (diff)
downloadnixlib-e331236d5716a89b6c04d8f64e4d18f34b856756.tar
nixlib-e331236d5716a89b6c04d8f64e4d18f34b856756.tar.gz
nixlib-e331236d5716a89b6c04d8f64e4d18f34b856756.tar.bz2
nixlib-e331236d5716a89b6c04d8f64e4d18f34b856756.tar.lz
nixlib-e331236d5716a89b6c04d8f64e4d18f34b856756.tar.xz
nixlib-e331236d5716a89b6c04d8f64e4d18f34b856756.tar.zst
nixlib-e331236d5716a89b6c04d8f64e4d18f34b856756.zip
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
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/termtosvg/default.nix27
1 files changed, 27 insertions, 0 deletions
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 ];
+  };
+}