Merge pull request #66332 from oxzi/gtimelog-0.11.3
pythonPackages.gtimelog: 0.9.1 -> unstable-2020-05-16
This commit is contained in:
commit
5ccf68e205
@ -1,43 +1,60 @@
|
|||||||
{ stdenv
|
{ stdenv, fetchFromGitHub, makeWrapper
|
||||||
, buildPythonPackage
|
, glibcLocales, gobject-introspection, gtk3, libsoup, libsecret
|
||||||
, pkgs
|
, buildPythonPackage, python
|
||||||
, python
|
, pygobject3, freezegun, mock
|
||||||
, pygobject3
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gtimelog";
|
pname = "gtimelog";
|
||||||
version = "0.9.1";
|
version = "unstable-2020-05-16";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz";
|
owner = pname;
|
||||||
sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj";
|
repo = pname;
|
||||||
|
rev = "80682ddbf9e0d68b8c67257289784f3b49b543d8";
|
||||||
|
sha256 = "0qv2kv7vc3qqlzxsisgg31cmrkkqgnmxspbj10c5fhdmwzzwi0i9";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgs.glibcLocales ];
|
buildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
glibcLocales gobject-introspection gtk3 libsoup libsecret
|
||||||
|
];
|
||||||
|
|
||||||
LC_ALL="en_US.UTF-8";
|
propagatedBuildInputs = [
|
||||||
|
pygobject3 freezegun mock
|
||||||
# TODO: AppIndicator
|
];
|
||||||
propagatedBuildInputs = [ pkgs.gobject-introspection pygobject3 pkgs.makeWrapper pkgs.gtk3 ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
substituteInPlace runtests --replace "/usr/bin/env python" "${python}/bin/${python.executable}"
|
substituteInPlace runtests --replace "/usr/bin/env python3" "${python.interpreter}"
|
||||||
./runtests
|
./runtests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "gtimelog" ];
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
wrapProgram $out/bin/gtimelog \
|
wrapProgram $out/bin/gtimelog \
|
||||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||||
--prefix LD_LIBRARY_PATH ":" "${pkgs.gtk3.out}/lib" \
|
--prefix LD_LIBRARY_PATH ":" "${gtk3.out}/lib" \
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A small GTK app for keeping track of your time. It's main goal is to be as unintrusive as possible";
|
description = "A time tracking app";
|
||||||
homepage = "https://mg.pov.lt/gtimelog/";
|
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.gnome3.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
In addition, the following packages should be added to the environment:
|
||||||
|
- gnome3.adwaita-icon-theme
|
||||||
|
- gnome3.dconf
|
||||||
|
'';
|
||||||
|
homepage = "https://gtimelog.org/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ ocharles ];
|
maintainers = with maintainers; [ ocharles oxzi ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user