labelImg: re-format with `nixfmt-rfc-style`

+50 -49
+50 -49
pkgs/applications/science/machine-learning/labelimg/default.nix
··· 1 - { lib 2 - , python3Packages 3 - , fetchFromGitHub 4 - , fetchpatch 5 - , qt5 6 }: 7 - python3Packages.buildPythonApplication rec { 8 - pname = "labelImg"; 9 - version = "1.8.6"; 10 - src = fetchFromGitHub { 11 - owner = "tzutalin"; 12 - repo = "labelImg"; 13 - rev = "v${version}"; 14 - hash = "sha256-RJxCtiDOePajlrjy9cpKETSKsWlH/Dlu1iFMj2aO4XU="; 15 - }; 16 - nativeBuildInputs = with python3Packages; [ 17 - pyqt5 18 - qt5.wrapQtAppsHook 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 - ]; 28 - propagatedBuildInputs = with python3Packages; [ 29 - pyqt5 30 - lxml 31 - ]; 32 - preBuild = '' 33 - make qt5py3 34 - ''; 35 - postInstall = '' 36 - cp libs/resources.py $out/${python3Packages.python.sitePackages}/libs 37 - ''; 38 - dontWrapQtApps = true; 39 - preFixup = '' 40 - makeWrapperArgs+=("''${qtWrapperArgs[@]}") 41 - ''; 42 - meta = with lib; { 43 - description = "A graphical image annotation tool and label object bounding boxes in images"; 44 - mainProgram = "labelImg"; 45 - homepage = "https://github.com/tzutalin/labelImg"; 46 - license = licenses.mit; 47 - platforms = platforms.linux; 48 - maintainers = [ maintainers.cmcdragonkai ]; 49 - }; 50 - }
··· 1 + { 2 + lib, 3 + python3Packages, 4 + fetchFromGitHub, 5 + fetchpatch, 6 + qt5, 7 }: 8 + python3Packages.buildPythonApplication rec { 9 + pname = "labelImg"; 10 + version = "1.8.6"; 11 + src = fetchFromGitHub { 12 + owner = "tzutalin"; 13 + repo = "labelImg"; 14 + rev = "v${version}"; 15 + hash = "sha256-RJxCtiDOePajlrjy9cpKETSKsWlH/Dlu1iFMj2aO4XU="; 16 + }; 17 + nativeBuildInputs = with python3Packages; [ 18 + pyqt5 19 + qt5.wrapQtAppsHook 20 + ]; 21 + patches = [ 22 + # fixes https://github.com/heartexlabs/labelImg/issues/838 23 + # can be removed after next upstream version bump 24 + (fetchpatch { 25 + url = "https://github.com/heartexlabs/labelImg/commit/5c38b6bcddce895d646e944e3cddcb5b43bf8b8b.patch"; 26 + hash = "sha256-BmbnJS95RBfoNQT0E6JDJ/IZfBa+tv1C69+RVOSFdRA="; 27 + }) 28 + ]; 29 + propagatedBuildInputs = with python3Packages; [ 30 + pyqt5 31 + lxml 32 + ]; 33 + preBuild = '' 34 + make qt5py3 35 + ''; 36 + postInstall = '' 37 + cp libs/resources.py $out/${python3Packages.python.sitePackages}/libs 38 + ''; 39 + dontWrapQtApps = true; 40 + preFixup = '' 41 + makeWrapperArgs+=("''${qtWrapperArgs[@]}") 42 + ''; 43 + meta = with lib; { 44 + description = "A graphical image annotation tool and label object bounding boxes in images"; 45 + mainProgram = "labelImg"; 46 + homepage = "https://github.com/tzutalin/labelImg"; 47 + license = licenses.mit; 48 + platforms = platforms.linux; 49 + maintainers = [ maintainers.cmcdragonkai ]; 50 + }; 51 + }