@@ -1,16 +1,16 @@
11{ stdenv, fetchurl, python3Packages
22, file, intltool, gobject-introspection, libgudev
3−, udisks, glib, gnome3, gst_all_1, libnotify
4−, exiv2, exiftool, qt5, gdk_pixbuf
3+, udisks, gexiv2, gst_all_1, libnotify
4+, exiftool, gdk_pixbuf, libmediainfo
55}:
66
77python3Packages.buildPythonApplication rec {
88 pname = "rapid-photo-downloader";
9− version = "0.9.13";
9+ version = "0.9.14";
1010
1111 src = fetchurl {
1212 url = "https://launchpad.net/rapid/pyqt/${version}/+download/${pname}-${version}.tar.gz";
13− sha256 = "1517w18sxil1gwd78jjbbixcd1b0sp05imnnd5h5lr8wl3f0szj0";
13+ sha256 = "1nywkkyxlpzq3s9anza9k67j5689pfclfha218frih36qdb0j258";
1414 };
1515
1616 # Disable version check and fix install tests
@@ -19,24 +19,34 @@ python3Packages.buildPythonApplication rec {
1919 --replace "disable_version_check = False" "disable_version_check = True"
2020 substituteInPlace raphodo/rescan.py \
2121 --replace "from preferences" "from raphodo.preferences"
22− substituteInPlace raphodo/copyfiles.py \
23− --replace "import problemnotification" "import raphodo.problemnotification"
2422 '';
2523
26− nativeBuildInputs = [ file intltool gobject-introspection ];
24+ nativeBuildInputs = [
25+ file
26+ intltool
27+ ];
28+
29+ # Package has no generally usable unit tests.
30+ # The included doctests expect specific, hardcoded hardware to be present.
31+ doCheck = false;
2732
33+ # NOTE: Without gobject-introspection in buildInputs, launching fails with
34+ # "Namespace [Notify / GExiv2 / GUdev] not available"
2835 buildInputs = [
29− libgudev
30− udisks
31− glib
32− gnome3.gexiv2
36+ gdk_pixbuf
37+ gexiv2
38+ gobject-introspection
39+ gst_all_1.gst-libav
40+ gst_all_1.gst-plugins-base
41+ gst_all_1.gst-plugins-good
3342 gst_all_1.gstreamer
43+ gst_all_1.gstreamer.dev
44+ libgudev
3445 libnotify
35− exiv2
36− exiftool
37− qt5.qtimageformats
38− gdk_pixbuf
39− ] ++ (with python3Packages; [
46+ udisks
47+ ];
48+
49+ propagatedBuildInputs = with python3Packages; [
4050 pyqt5
4151 pygobject3
4252 gphoto2
@@ -54,11 +64,14 @@ python3Packages.buildPythonApplication rec {
5464 requests
5565 colorlog
5666 pyprind
57− ]);
67+ ];
5868
5969 makeWrapperArgs = [
6070 "--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\""
6171 "--set PYTHONPATH \"$PYTHONPATH\""
72+ "--prefix PATH : ${stdenv.lib.makeBinPath [ exiftool ]}"
73+ "--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libmediainfo ]}"
74+ "--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : \"$GST_PLUGIN_SYSTEM_PATH_1_0\""
6275 ];
6376
6477 meta = with stdenv.lib; {