New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
termtosvg: init at 0.3.0 #43069
termtosvg: init at 0.3.0 #43069
Conversation
/cc @Jumblemuddle |
This doesn't look like a library and does not belong in |
@@ -0,0 +1,29 @@ | |||
{ lib, buildPythonPackage, fetchFromGitHub, svgwrite, pyte, mock, unittest2, isPy3k }: | |||
|
|||
buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's a standalone app, buildPythonApplication
fits better.
version = "0.3.0"; | ||
|
||
# tests broken on Python 2, standalone app that should be fine with Python 3 | ||
disable = !isPy3k; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use buildPythonApplication
above, you can use python3
as input and get rid of this.
postCheck = "unset HOME"; | ||
|
||
meta = with lib; { | ||
homepage = https://pypi.org/project/termtosvg/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be https://github.com/nbedos/termtosvg and the description is missing.
@@ -0,0 +1,26 @@ | |||
{ lib, buildPythonApplication, fetchFromGitHub, svgwrite, pyte, mock, unittest2 }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pass only lib
, python3
and fetchFromGitHub
as arguments so that the Python package set can be easily overriden.
pkgs/top-level/all-packages.nix
Outdated
@@ -18413,6 +18413,10 @@ with pkgs; | |||
vte = gnome3.vte-ng; | |||
}; | |||
|
|||
termtosvg = callPackage ../tools/misc/termtosvg { | |||
inherit (python3Packages) buildPythonApplication svgwrite pyte mock unittest2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to remove the python3Packages prefix from your commit message.
ack, will work through the review %) |
ok, this history looks wrong %) |
@@ -18413,6 +18413,8 @@ with pkgs; | |||
vte = gnome3.vte-ng; | |||
}; | |||
|
|||
termtosvg = callPackage ../tools/misc/termtosvg { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use python3Packages.callPackage
and list all packages as input to the function instead.
You can look at aws_shell
for an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that callPackage
is fine in this case if I understand threads like this correctly: #38028 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you are right. Sorry for the noise.
Please remove the |
`termtosvg` makes screencasts and writes them into a SVG file. The app can be used on CLI entirely. Closes NixOS#42921
@GrahamcOfBorg build termtosvg |
Success on x86_64-darwin (full log) Attempted: termtosvg Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: termtosvg Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: termtosvg Partial log (click to expand)
|
Done in the merge. |
Motivation for this change
termtosvg
makes screencasts and writes them into a SVG file. The appcan be used on CLI entirely.
Closes #42921
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)