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