3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/machine-learning/labelimg/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

{ lib, python3Packages, fetchFromGitHub, qt5 }:
python3Packages.buildPythonApplication rec {
2019-08-31 12:41:23 +01:00
pname = "labelImg";
version = "1.8.3";
src = fetchFromGitHub {
owner = "tzutalin";
repo = "labelImg";
rev = "v${version}";
sha256 = "07v106fzlmxrbag4xm06m4mx9m0gckb27vpwsn7sap1bbgc1pap5";
2018-04-27 03:01:24 +01:00
};
nativeBuildInputs = with python3Packages; [
pyqt5
qt5.wrapQtAppsHook
];
propagatedBuildInputs = with python3Packages; [
pyqt5
2018-04-27 03:01:24 +01:00
lxml
sip_4
2018-04-27 03:01:24 +01:00
];
preBuild = ''
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
'';
meta = with lib; {
description = "A graphical image annotation tool and label object bounding boxes in images";
homepage = "https://github.com/tzutalin/labelImg";
2018-04-27 03:01:24 +01:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.cmcdragonkai ];
};
}