Skip to content

Commit 78fc726

Browse files
committedJul 15, 2017
paperwork: 1.0.6.1 -> 1.2
1 parent d30fc3b commit 78fc726

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed
 

‎pkgs/applications/office/paperwork/default.nix

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{ lib, python3Packages, fetchFromGitHub, gtk3, cairo
22
, aspellDicts, buildEnv
33
, gnome3, hicolor_icon_theme
4-
, xvfb_run, dbus
4+
, xvfb_run, dbus, libnotify
55
}:
66

77
python3Packages.buildPythonApplication rec {
88
name = "paperwork-${version}";
99
# Don't forget to also update paperwork-backend when updating this!
10-
version = "1.0.6.1";
10+
version = "1.2";
1111

1212
src = fetchFromGitHub {
1313
repo = "paperwork";
1414
owner = "jflesch";
1515
rev = version;
16-
sha256 = "1v1lxyi4crdik4jlwjds9n6lzw4m4l4f9n5azlinv8wb477qpv6h";
16+
sha256 = "1cb9wnhhpm3dyxjrkyl9bbva56xx85vlwlb7z07m1icflcln14x5";
1717
};
1818

1919
# Patch out a few paths that assume that we're using the FHS:
@@ -47,7 +47,7 @@ python3Packages.buildPythonApplication rec {
4747
}}/lib/aspell";
4848

4949
checkInputs = [ xvfb_run dbus.daemon ];
50-
buildInputs = [ gnome3.defaultIconTheme hicolor_icon_theme ];
50+
buildInputs = [ gnome3.defaultIconTheme hicolor_icon_theme libnotify ];
5151

5252
# A few parts of chkdeps need to have a display and a dbus session, so we not
5353
# only need to run a virtual X server + dbus but also have a large enough
@@ -59,7 +59,7 @@ python3Packages.buildPythonApplication rec {
5959
'';
6060

6161
propagatedBuildInputs = with python3Packages; [
62-
paperwork-backend pypillowfight gtk3 cairo
62+
paperwork-backend pypillowfight gtk3 cairo pyxdg dateutil
6363
];
6464

6565
makeWrapperArgs = [

‎pkgs/top-level/python-packages.nix

+5-10
Original file line numberDiff line numberDiff line change
@@ -8192,30 +8192,25 @@ in {
81928192

81938193
paperwork-backend = buildPythonPackage rec {
81948194
name = "paperwork-backend-${version}";
8195-
version = "1.0.6";
8195+
version = "1.2.0";
81968196

81978197
src = pkgs.fetchFromGitHub {
81988198
owner = "jflesch";
81998199
repo = "paperwork-backend";
82008200
rev = version;
8201-
sha256 = "11jbhv9xcpimp9iq2b1hlpljzij73s86rb5lpgzhslqc7zmm5bxn";
8201+
sha256 = "1pzyy14f9wzh9vwn855k1z48a8mbs73j1dk8730kdlcdkmn3l1ms";
82028202
};
82038203

82048204
# Python 2.x is not supported.
82058205
disabled = !isPy3k && !isPyPy;
82068206

8207-
# Make sure that chkdeps exits with status 1 if a dependency is not found.
8208-
postPatch = ''
8209-
sed -i -e '/print.*Missing dependencies/,/^ *$/ {
8210-
/^ *$/ a \ sys.exit(1)
8211-
}' scripts/paperwork-shell
8212-
'';
8213-
82148207
preCheck = "\"$out/bin/paperwork-shell\" chkdeps paperwork_backend";
82158208

82168209
propagatedBuildInputs = with self; [
82178210
pyenchant simplebayes pillow pycountry whoosh termcolor
8218-
python-Levenshtein pyinsane2 pygobject3 pyocr pkgs.poppler_gi
8211+
python-Levenshtein pyinsane2 pygobject3 pyocr
8212+
pkgs.poppler_gi pkgs.gtk3
8213+
natsort
82198214
];
82208215

82218216
meta = {

0 commit comments

Comments
 (0)
Please sign in to comment.