@@ -0,0 +1,29 @@
1+{ lib, python3Packages, fetchFromGitHub, gettext }:
2+
3+python3Packages.buildPythonApplication rec {
4+ pname = "ibus-theme-tools";
5+ version = "4.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "openSUSE";
9+ repo = "IBus-Theme-Tools";
10+ rev = "v${version}";
11+ sha256 = "0i8vwnikwd1bfpv4xlgzc51gn6s18q58nqhvcdiyjzcmy3z344c2";
12+ };
13+
14+ buildInputs = [ gettext ];
15+
16+ propagatedBuildInputs = with python3Packages; [ tinycss2 pygobject3 ];
17+
18+ # No test.
19+ doCheck = false;
20+
21+ pythonImportsCheck = [ "ibus_theme_tools" ];
22+
23+ meta = with lib; {
24+ description = "Generate the IBus GTK or GNOME Shell theme from existing themes";
25+ license = licenses.gpl3Plus;
26+ maintainers = with maintainers; [ hollowman6 ];
27+ homepage = "https://github.com/openSUSE/IBus-Theme-Tools";
28+ };
29+}