diff options
author | freezeboy <freezeboy@users.noreply.github.com> | 2020-07-11 11:53:55 +0200 |
---|---|---|
committer | freezeboy <freezeboy@users.noreply.github.com> | 2020-08-20 21:08:39 +0200 |
commit | 531cf77114a84c68c16e25813533cef75156078c (patch) | |
tree | a0b02b5cfa70bd03b6e266f37505bc7c5a07b4cc /pkgs/applications/science/machine-learning/labelimg | |
parent | 345c44de53caced154daa8397ac2eb2fac53ff5c (diff) |
labelImg: 1.8.1 -> 1.8.3
Switch to python3 and qt5 libraries also
Diffstat (limited to 'pkgs/applications/science/machine-learning/labelimg')
-rw-r--r-- | pkgs/applications/science/machine-learning/labelimg/default.nix | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/pkgs/applications/science/machine-learning/labelimg/default.nix b/pkgs/applications/science/machine-learning/labelimg/default.nix index a952fb559ce6a..05c56b0b09583 100644 --- a/pkgs/applications/science/machine-learning/labelimg/default.nix +++ b/pkgs/applications/science/machine-learning/labelimg/default.nix @@ -1,20 +1,31 @@ -{ stdenv, python2Packages, fetchurl }: - python2Packages.buildPythonApplication rec { +{ stdenv, python3Packages, fetchFromGitHub, qt5 }: + python3Packages.buildPythonApplication rec { pname = "labelImg"; - version = "1.8.1"; - src = fetchurl { - url = "https://github.com/tzutalin/labelImg/archive/v${version}.tar.gz"; - sha256 = "1banpkpbrny1jx3zsgs544xai62z5yvislbq782a5r47gv2f2k4a"; + version = "1.8.3"; + src = fetchFromGitHub { + owner = "tzutalin"; + repo = "labelImg"; + rev = "v${version}"; + sha256 = "07v106fzlmxrbag4xm06m4mx9m0gckb27vpwsn7sap1bbgc1pap5"; }; - nativeBuildInputs = with python2Packages; [ - pyqt4 + nativeBuildInputs = with python3Packages; [ + pyqt5 + qt5.wrapQtAppsHook ]; - propagatedBuildInputs = with python2Packages; [ - pyqt4 + propagatedBuildInputs = with python3Packages; [ + pyqt5 lxml + sip ]; preBuild = '' - make qt4py2 + make qt5py3 + ''; + postInstall = '' + cp libs/resources.py $out/${python3Packages.python.sitePackages}/libs + ''; + dontWrapQtApps = true; + preFixup = '' + makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; meta = with stdenv.lib; { description = "LabelImg is a graphical image annotation tool and label object bounding boxes in images"; |