11 python3.pkgs.buildPythonApplication rec {
17 url = "mirror://sourceforge/thetimelineproj/${pname}-${version}.zip";
18 sha256 = "sha256-qwH2mt3Va62QJKJGOpt5WV3QksqQaRGEif4CcPC5F2E=";
22 python3.pkgs.wrapPython
27 pythonPath = with python3.pkgs; [
41 desktopName = "Timeline";
43 comment = "Display and navigate information on a timeline";
57 sed -i "s|_ROOT =.*|_ROOT = \"$out/usr/share/timeline/\"|" source/timelinelib/config/paths.py
63 site_packages=$out/${python3.pkgs.python.sitePackages}
64 install -D -m755 source/timeline.py $out/bin/timeline
65 mkdir -p $site_packages
66 cp -r source/timelinelib $site_packages/
68 mkdir -p $out/usr/share/timeline/locale
69 cp -r icons $out/usr/share/timeline/
70 cp -r translations/ $out/usr/share/timeline/
72 mkdir -p $out/share/icons/hicolor/{48x48,32x32,16x16}/apps
73 cp icons/48.png $out/share/icons/hicolor/48x48/apps/timeline.png
74 cp icons/32.png $out/share/icons/hicolor/32x32/apps/timeline.png
75 cp icons/16.png $out/share/icons/hicolor/16x16/apps/timeline.png
80 # tests fail because they need an x server
81 # Unable to access the X Display, is $DISPLAY set properly?
84 ${python3.interpreter} tools/execute-specs.py
91 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
95 homepage = "https://thetimelineproj.sourceforge.net/";
96 changelog = "https://thetimelineproj.sourceforge.net/changelog.html";
97 description = "Display and navigate information on a timeline";
98 mainProgram = "timeline";
99 license = with licenses; [
103 platforms = with platforms; unix;
104 maintainers = with maintainers; [ davidak ];