@@ -0,0 +1,35 @@
1+{ stdenv, fetchFromGitHub, python3Packages }:
2+
3+python3Packages.buildPythonApplication rec {
4+ name = "gmailieer";
5+ version = "0.3";
6+
7+ src = fetchFromGitHub {
8+ owner = "gauteh";
9+ repo = "gmailieer";
10+ rev = "v${version}";
11+ sha256 = "1app783gf0p9p196nqsgbyl6s1bp304dfav86fqiq86h1scld787";
12+ };
13+
14+ propagatedBuildInputs = with python3Packages; [
15+ notmuch
16+ oauth2client
17+ google_api_python_client
18+ tqdm
19+ ];
20+
21+ meta = with stdenv.lib; {
22+ description = "Fast email-fetching and two-way tag synchronization between notmuch and GMail";
23+ longDescription = ''
24+ This program can pull email and labels (and changes to labels)
25+ from your GMail account and store them locally in a maildir with
26+ the labels synchronized with a notmuch database. The changes to
27+ tags in the notmuch database may be pushed back remotely to your
28+ GMail account.
29+ '';
30+ homepage = https://github.com/gauteh/gmailieer;
31+ repositories.git = https://github.com/gauteh/gmailieer.git;
32+ license = licenses.gpl3Plus;
33+ maintainers = with maintainers; [ kaiha ];
34+ };
35+}