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