Merge pull request #236135 (paperwork-json)

This adds paperwork-json to the executables of the paperwork package.

The executable in question is similar in nature to paperwork-cli but
it's designed to be used in scripts.

I've done a quick test on my local machine and given that it's just
adding another executable I'm merging this since I do not see a lot of
room for breaking things.
This commit is contained in:
aszlig 2023-06-06 17:57:55 +02:00
commit 9d0fdbe350
No known key found for this signature in database
GPG key ID: 684089CE67EBB691

View file

@ -66,7 +66,9 @@ python3Packages.buildPythonApplication rec {
postInstall = ''
# paperwork-shell needs to be re-wrapped with access to paperwork
cp ${python3Packages.paperwork-shell}/bin/.paperwork-cli-wrapped $out/bin/paperwork-cli
for exe in paperwork-cli paperwork-json; do
cp ${python3Packages.paperwork-shell}/bin/.$exe-wrapped $out/bin/$exe
done
# install desktop files and icons
XDG_DATA_HOME=$out/share $out/bin/paperwork-gtk install --user
@ -120,6 +122,9 @@ python3Packages.buildPythonApplication rec {
--config-file=${dbus}/share/dbus-1/session.conf \
$out/bin/paperwork-gtk chkdeps
$out/bin/paperwork-cli chkdeps
$out/bin/paperwork-json chkdeps
# content of make test, without the dep on make install
python -m unittest discover --verbose -s tests