2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, qt5 }:
|
2020-07-11 10:53:55 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "labelImg";
|
2020-07-11 10:53:55 +01:00
|
|
|
version = "1.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tzutalin";
|
|
|
|
repo = "labelImg";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "07v106fzlmxrbag4xm06m4mx9m0gckb27vpwsn7sap1bbgc1pap5";
|
2018-04-27 03:01:24 +01:00
|
|
|
};
|
2020-07-11 10:53:55 +01:00
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
pyqt5
|
|
|
|
qt5.wrapQtAppsHook
|
2019-03-15 19:50:03 +00:00
|
|
|
];
|
2020-07-11 10:53:55 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pyqt5
|
2018-04-27 03:01:24 +01:00
|
|
|
lxml
|
2021-05-03 12:43:20 +01:00
|
|
|
sip_4
|
2018-04-27 03:01:24 +01:00
|
|
|
];
|
|
|
|
preBuild = ''
|
2020-07-11 10:53:55 +01:00
|
|
|
make qt5py3
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
cp libs/resources.py $out/${python3Packages.python.sitePackages}/libs
|
|
|
|
'';
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2018-04-27 03:01:24 +01:00
|
|
|
'';
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "A graphical image annotation tool and label object bounding boxes in images";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tzutalin/labelImg";
|
2018-04-27 03:01:24 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.cmcdragonkai ];
|
|
|
|
};
|
|
|
|
}
|