anchor.diff:  , libunwind
   , elfutils
   , orc
  -, python3
  +, python3Packages
   , libuuid
  +, wrapGAppsHook
   }:
   
   stdenv.mkDerivation rec {
     pname = "tiscamera";
  -  version = "0.11.1";
  +  version = "0.13.1";
   
     src = fetchFromGitHub {
       owner = "TheImagingSource";
       repo = pname;
       rev = "v-${pname}-${version}";
  -    sha256 = "07vp6khgl6qd3a4519dmx1s5bfw7pld793p50pjn29fqh91fm93g";
  +    sha256 = "0hpy9yhc4mn6w8gvzwif703smmcys0j2jqbz2xfghqxcyb0ykplj";
     };
   
     nativeBuildInputs = [
       cmake
       pkg-config
  +    python3Packages.wrapPython
  +    wrapGAppsHook
     ];
   
     buildInputs = [
  
positive.code:     libunwind
      elfutils
      orc
      python3
      libuuid
    ];
  
    cmakeFlags = [
      "-DBUILD_ARAVIS=OFF" # For GigE support. Won't need it as our camera is usb.
  
negative.code:     "-DBUILD_TOOLS=ON"
      "-DBUILD_V4L2=ON"
      "-DBUILD_LIBUSB=ON"
      "-DBUILD_TESTS=ON"
      "-DTCAM_INSTALL_UDEV=${placeholder "out"}/lib/udev/rules.d"
      "-DTCAM_INSTALL_UVCDYNCTRL=${placeholder "out"}/share/uvcdynctrl/data/199e"
      "-DTCAM_INSTALL_GST_1_0=${placeholder "out"}/lib/gstreamer-1.0"
      "-DTCAM_INSTALL_GIR=${placeholder "out"}/share/gir-1.0"
      "-DTCAM_INSTALL_TYPELIB=${placeholder "out"}/lib/girepository-1.0"
      "-DTCAM_INSTALL_SYSTEMD=${placeholder "out"}/etc/systemd/system"
      "-DTCAM_INSTALL_PYTHON3_MODULES=${placeholder "out"}/lib/${python3Packages.python.libPrefix}/site-packages"
      "-DGSTREAMER_1.0_INCLUDEDIR=${placeholder "out"}/include/gstreamer-1.0"
      # There are gobject introspection commands launched as part of the build. Those have a runtime
      # dependency on `libtcam` (which itself is built as part of this build). In order to allow
      # that, we set the dynamic linker's path to point on the build time location of the library.
      "-DCMAKE_SKIP_BUILD_RPATH=OFF"
    ];
  
    doCheck = true;
  
    # gstreamer tests requires, besides gst-plugins-bad, plugins installed by this expression.
    checkPhase = "ctest --force-new-ctest-process -E gstreamer";
  
    postFixup = ''
      wrapPythonPrograms "$out $pythonPath"
    '';
  
    meta = with lib; {
  