tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
labelImg: re-format with `nixfmt-rfc-style`
北雁 Cryolitia
2 years ago
8ce3c897
c14ac40d
+50
-49
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
machine-learning
labelimg
default.nix
+50
-49
pkgs/applications/science/machine-learning/labelimg/default.nix
···
1
1
-
{ lib
2
2
-
, python3Packages
3
3
-
, fetchFromGitHub
4
4
-
, fetchpatch
5
5
-
, qt5
1
1
+
{
2
2
+
lib,
3
3
+
python3Packages,
4
4
+
fetchFromGitHub,
5
5
+
fetchpatch,
6
6
+
qt5,
6
7
}:
7
7
-
python3Packages.buildPythonApplication rec {
8
8
-
pname = "labelImg";
9
9
-
version = "1.8.6";
10
10
-
src = fetchFromGitHub {
11
11
-
owner = "tzutalin";
12
12
-
repo = "labelImg";
13
13
-
rev = "v${version}";
14
14
-
hash = "sha256-RJxCtiDOePajlrjy9cpKETSKsWlH/Dlu1iFMj2aO4XU=";
15
15
-
};
16
16
-
nativeBuildInputs = with python3Packages; [
17
17
-
pyqt5
18
18
-
qt5.wrapQtAppsHook
19
19
-
];
20
20
-
patches = [
21
21
-
# fixes https://github.com/heartexlabs/labelImg/issues/838
22
22
-
# can be removed after next upstream version bump
23
23
-
(fetchpatch {
24
24
-
url = "https://github.com/heartexlabs/labelImg/commit/5c38b6bcddce895d646e944e3cddcb5b43bf8b8b.patch";
25
25
-
hash = "sha256-BmbnJS95RBfoNQT0E6JDJ/IZfBa+tv1C69+RVOSFdRA=";
26
26
-
})
27
27
-
];
28
28
-
propagatedBuildInputs = with python3Packages; [
29
29
-
pyqt5
30
30
-
lxml
31
31
-
];
32
32
-
preBuild = ''
33
33
-
make qt5py3
34
34
-
'';
35
35
-
postInstall = ''
36
36
-
cp libs/resources.py $out/${python3Packages.python.sitePackages}/libs
37
37
-
'';
38
38
-
dontWrapQtApps = true;
39
39
-
preFixup = ''
40
40
-
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
41
41
-
'';
42
42
-
meta = with lib; {
43
43
-
description = "A graphical image annotation tool and label object bounding boxes in images";
44
44
-
mainProgram = "labelImg";
45
45
-
homepage = "https://github.com/tzutalin/labelImg";
46
46
-
license = licenses.mit;
47
47
-
platforms = platforms.linux;
48
48
-
maintainers = [ maintainers.cmcdragonkai ];
49
49
-
};
50
50
-
}
8
8
+
python3Packages.buildPythonApplication rec {
9
9
+
pname = "labelImg";
10
10
+
version = "1.8.6";
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "tzutalin";
13
13
+
repo = "labelImg";
14
14
+
rev = "v${version}";
15
15
+
hash = "sha256-RJxCtiDOePajlrjy9cpKETSKsWlH/Dlu1iFMj2aO4XU=";
16
16
+
};
17
17
+
nativeBuildInputs = with python3Packages; [
18
18
+
pyqt5
19
19
+
qt5.wrapQtAppsHook
20
20
+
];
21
21
+
patches = [
22
22
+
# fixes https://github.com/heartexlabs/labelImg/issues/838
23
23
+
# can be removed after next upstream version bump
24
24
+
(fetchpatch {
25
25
+
url = "https://github.com/heartexlabs/labelImg/commit/5c38b6bcddce895d646e944e3cddcb5b43bf8b8b.patch";
26
26
+
hash = "sha256-BmbnJS95RBfoNQT0E6JDJ/IZfBa+tv1C69+RVOSFdRA=";
27
27
+
})
28
28
+
];
29
29
+
propagatedBuildInputs = with python3Packages; [
30
30
+
pyqt5
31
31
+
lxml
32
32
+
];
33
33
+
preBuild = ''
34
34
+
make qt5py3
35
35
+
'';
36
36
+
postInstall = ''
37
37
+
cp libs/resources.py $out/${python3Packages.python.sitePackages}/libs
38
38
+
'';
39
39
+
dontWrapQtApps = true;
40
40
+
preFixup = ''
41
41
+
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
42
42
+
'';
43
43
+
meta = with lib; {
44
44
+
description = "A graphical image annotation tool and label object bounding boxes in images";
45
45
+
mainProgram = "labelImg";
46
46
+
homepage = "https://github.com/tzutalin/labelImg";
47
47
+
license = licenses.mit;
48
48
+
platforms = platforms.linux;
49
49
+
maintainers = [ maintainers.cmcdragonkai ];
50
50
+
};
51
51
+
}