tiscamera: 0.11.1 -> 0.13.1

J. Neto f75b9fe4 9622485d

+22 -9
+22 -9
pkgs/os-specific/linux/tiscamera/default.nix
··· 14 14 , libunwind 15 15 , elfutils 16 16 , orc 17 - , python3 17 + , python3Packages 18 18 , libuuid 19 + , wrapGAppsHook 19 20 }: 20 21 21 22 stdenv.mkDerivation rec { 22 23 pname = "tiscamera"; 23 - version = "0.11.1"; 24 + version = "0.13.1"; 24 25 25 26 src = fetchFromGitHub { 26 27 owner = "TheImagingSource"; 27 28 repo = pname; 28 29 rev = "v-${pname}-${version}"; 29 - sha256 = "07vp6khgl6qd3a4519dmx1s5bfw7pld793p50pjn29fqh91fm93g"; 30 + sha256 = "0hpy9yhc4mn6w8gvzwif703smmcys0j2jqbz2xfghqxcyb0ykplj"; 30 31 }; 31 32 32 33 nativeBuildInputs = [ 33 34 cmake 34 35 pkg-config 36 + python3Packages.wrapPython 37 + wrapGAppsHook 35 38 ]; 36 39 37 40 buildInputs = [ ··· 47 50 libunwind 48 51 elfutils 49 52 orc 50 - python3 51 53 libuuid 54 + python3Packages.python 55 + python3Packages.pyqt5 52 56 ]; 57 + 58 + pythonPath = with python3Packages; [ pyqt5 pygobject3 ]; 59 + 60 + propagatedBuildInputs = pythonPath; 53 61 54 62 cmakeFlags = [ 55 63 "-DBUILD_ARAVIS=OFF" # For GigE support. Won't need it as our camera is usb. ··· 57 65 "-DBUILD_TOOLS=ON" 58 66 "-DBUILD_V4L2=ON" 59 67 "-DBUILD_LIBUSB=ON" 68 + "-DBUILD_TESTS=ON" 60 69 "-DTCAM_INSTALL_UDEV=${placeholder "out"}/lib/udev/rules.d" 61 70 "-DTCAM_INSTALL_UVCDYNCTRL=${placeholder "out"}/share/uvcdynctrl/data/199e" 62 71 "-DTCAM_INSTALL_GST_1_0=${placeholder "out"}/lib/gstreamer-1.0" 63 72 "-DTCAM_INSTALL_GIR=${placeholder "out"}/share/gir-1.0" 64 73 "-DTCAM_INSTALL_TYPELIB=${placeholder "out"}/lib/girepository-1.0" 65 74 "-DTCAM_INSTALL_SYSTEMD=${placeholder "out"}/etc/systemd/system" 75 + "-DTCAM_INSTALL_PYTHON3_MODULES=${placeholder "out"}/lib/${python3Packages.python.libPrefix}/site-packages" 76 + "-DGSTREAMER_1.0_INCLUDEDIR=${placeholder "out"}/include/gstreamer-1.0" 66 77 # There are gobject introspection commands launched as part of the build. Those have a runtime 67 78 # dependency on `libtcam` (which itself is built as part of this build). In order to allow 68 79 # that, we set the dynamic linker's path to point on the build time location of the library. 69 80 "-DCMAKE_SKIP_BUILD_RPATH=OFF" 70 81 ]; 71 82 72 - postPatch = '' 73 - substituteInPlace ./src/BackendLoader.cpp \ 74 - --replace '"libtcam-v4l2.so"' "\"$out/lib/tcam-0/libtcam-v4l2.so\"" \ 75 - --replace '"libtcam-aravis.so"' "\"$out/lib/tcam-0/libtcam-aravis.so\"" \ 76 - --replace '"libtcam-libusb.so"' "\"$out/lib/tcam-0/libtcam-libusb.so\"" 83 + doCheck = true; 84 + 85 + # gstreamer tests requires, besides gst-plugins-bad, plugins installed by this expression. 86 + checkPhase = "ctest --force-new-ctest-process -E gstreamer"; 87 + 88 + postFixup = '' 89 + wrapPythonPrograms "$out $pythonPath" 77 90 ''; 78 91 79 92 meta = with lib; {