Merge pull request #259395 from nixdrin/gtimelog
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{ lib, fetchFromGitHub, python3Packages, wrapGAppsHook
|
||||
, glibcLocales, gobject-introspection, gtk3, libsoup_3, libsecret
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "gtimelog";
|
||||
version = "unstable-2023-10-05";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "ba606cbe8eef0e3dc098c6ab3bcbe381bf7ef410";
|
||||
hash = "sha256-+iBHfbUJtAtI/vcHj0Y8f9OxAp1SnhQyMqedVzSYPZQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
|
||||
buildInputs = [ glibcLocales gtk3 libsoup_3 libsecret ];
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
pygobject3
|
||||
];
|
||||
checkInputs = with python3Packages; [
|
||||
freezegun
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
patchShebangs ./runtests
|
||||
./runtests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "gtimelog" ];
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
||||
# Arguments to be passed to `makeWrapper`, only used by buildPython*
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 gtimelog.desktop $out/share/applications/gtimelog.desktop
|
||||
install -Dm644 src/gtimelog/gtimelog.png $out/share/icons/hicolor/48x48/apps/gtimelog.png
|
||||
install -Dm644 src/gtimelog/gtimelog-large.png $out/share/icons/hicolor/256x256/apps/gtimelog.png
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A time tracking app";
|
||||
longDescription = ''
|
||||
GTimeLog is a small time tracking application for GNOME.
|
||||
It's main goal is to be as unintrusive as possible.
|
||||
|
||||
To run gtimelog successfully on a system that does not have full GNOME
|
||||
installed, the following NixOS options should be set:
|
||||
- programs.dconf.enable = true;
|
||||
'';
|
||||
homepage = "https://gtimelog.org/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ oxzi ];
|
||||
};
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
{ lib, fetchFromGitHub, makeWrapper
|
||||
, glibcLocales, gobject-introspection, gtk3, libsoup, libsecret
|
||||
, buildPythonPackage, python
|
||||
, pygobject3, freezegun, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gtimelog";
|
||||
version = "unstable-2020-05-16";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "80682ddbf9e0d68b8c67257289784f3b49b543d8";
|
||||
sha256 = "0qv2kv7vc3qqlzxsisgg31cmrkkqgnmxspbj10c5fhdmwzzwi0i9";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper gobject-introspection ];
|
||||
buildInputs = [
|
||||
glibcLocales gtk3 libsoup libsecret
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pygobject3 freezegun mock
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
substituteInPlace runtests --replace "/usr/bin/env python3" "${python.interpreter}"
|
||||
./runtests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "gtimelog" ];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/gtimelog \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||
--prefix LD_LIBRARY_PATH ":" "${gtk3.out}/lib" \
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A time tracking app";
|
||||
longDescription = ''
|
||||
GTimeLog is a small time tracking application for GNOME.
|
||||
It's main goal is to be as unintrusive as possible.
|
||||
|
||||
To run gtimelog successfully on a system that does not have full GNOME 3
|
||||
installed, the following NixOS options should be set:
|
||||
- programs.dconf.enable = true;
|
||||
- services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
In addition, the following packages should be added to the environment:
|
||||
- gnome.adwaita-icon-theme
|
||||
- gnome.dconf
|
||||
'';
|
||||
homepage = "https://gtimelog.org/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ oxzi ];
|
||||
};
|
||||
}
|
||||
@@ -31762,8 +31762,6 @@ with pkgs;
|
||||
|
||||
gthumb = callPackage ../applications/graphics/gthumb { };
|
||||
|
||||
gtimelog = with python3Packages; toPythonApplication gtimelog;
|
||||
|
||||
inherit (gnome) gucharmap;
|
||||
|
||||
guitarix = callPackage ../applications/audio/guitarix {
|
||||
|
||||
@@ -192,6 +192,7 @@ mapAliases ({
|
||||
grappelli_safe = grappelli-safe; # added 2023-10-08
|
||||
groestlcoin_hash = groestlcoin-hash; # added 2024-01-06
|
||||
grpc_google_iam_v1 = grpc-google-iam-v1; # added 2021-08-21
|
||||
inherit (pkgs) gtimelog;
|
||||
guzzle_sphinx_theme = guzzle-sphinx-theme; # added 2023-10-16
|
||||
ha-av = throw "ha-av was removed, because it is no longer maintained"; # added 2022-04-06
|
||||
HAP-python = hap-python; # added 2021-06-01
|
||||
|
||||
@@ -4994,8 +4994,6 @@ self: super: with self; {
|
||||
|
||||
gtfs-realtime-bindings = callPackage ../development/python-modules/gtfs-realtime-bindings { };
|
||||
|
||||
gtimelog = callPackage ../development/python-modules/gtimelog { };
|
||||
|
||||
gto = callPackage ../development/python-modules/gto { };
|
||||
|
||||
gtts = callPackage ../development/python-modules/gtts { };
|
||||
|
||||
Reference in New Issue
Block a user