labelImg: 1.8.3 -> 1.8.6

Co-Authored-By: Fabian Freihube <fabian@freihube.dev>

+16 -4
+16 -4
pkgs/applications/science/machine-learning/labelimg/default.nix
··· 1 - { lib, python3Packages, fetchFromGitHub, qt5 }: 1 + { lib 2 + , python3Packages 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , qt5 6 + }: 2 7 python3Packages.buildPythonApplication rec { 3 8 pname = "labelImg"; 4 - version = "1.8.3"; 9 + version = "1.8.6"; 5 10 src = fetchFromGitHub { 6 11 owner = "tzutalin"; 7 12 repo = "labelImg"; 8 13 rev = "v${version}"; 9 - sha256 = "07v106fzlmxrbag4xm06m4mx9m0gckb27vpwsn7sap1bbgc1pap5"; 14 + hash = "sha256-RJxCtiDOePajlrjy9cpKETSKsWlH/Dlu1iFMj2aO4XU="; 10 15 }; 11 16 nativeBuildInputs = with python3Packages; [ 12 17 pyqt5 13 18 qt5.wrapQtAppsHook 14 19 ]; 20 + patches = [ 21 + # fixes https://github.com/heartexlabs/labelImg/issues/838 22 + # can be removed after next upstream version bump 23 + (fetchpatch { 24 + url = "https://github.com/heartexlabs/labelImg/commit/5c38b6bcddce895d646e944e3cddcb5b43bf8b8b.patch"; 25 + hash = "sha256-BmbnJS95RBfoNQT0E6JDJ/IZfBa+tv1C69+RVOSFdRA="; 26 + }) 27 + ]; 15 28 propagatedBuildInputs = with python3Packages; [ 16 29 pyqt5 17 30 lxml 18 - sip4 19 31 ]; 20 32 preBuild = '' 21 33 make qt5py3