termtosvg 0.7.0 (new formula)

Closes #34577.

Signed-off-by: Igor Kapkov <igasgeek@me.com>
This commit is contained in:
Philipp Haussleiter 2018-11-29 01:50:39 +01:00 committed by Igor Kapkov
parent f36a9902b5
commit 66e6b72997
No known key found for this signature in database
GPG key ID: D7EEA6CEB7ECBDC7

21
Formula/termtosvg.rb Normal file
View file

@ -0,0 +1,21 @@
class Termtosvg < Formula
include Language::Python::Virtualenv
desc "Record terminal sessions as SVG animations"
homepage "https://nbedos.github.io/termtosvg"
url "https://github.com/nbedos/termtosvg/archive/0.7.0.tar.gz"
sha256 "a90cbd2ea29e1bdf4059aa8feb8f19e9f32da5620b447289ac78cde38682c7c2"
depends_on "python"
def install
venv = virtualenv_create(libexec, "python3")
system libexec/"bin/pip", "install", "-U", "-e", "."
venv.pip_install_and_link buildpath
bin.install_symlink libexec/"bin/termtosvg"
end
test do
system libexec/"bin/python", "-m", "unittest", "termtosvg.tests.suite"
end
end