aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix
new file mode 100644
index 000000000000..e183e79f5703
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPy3k
+, docutils, installShellFiles
+, google_api_python_client, simplejson, oauth2client, setuptools, xdg
+}:
+
+buildPythonPackage rec {
+ pname = "goobook";
+ version = "3.5";
+ disabled = !isPy3k;
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1rmfyma3gwdf5mrw4l3j66y86fy8hgdbd0z4a5kck0kcm3hy34j9";
+ };
+
+ nativeBuildInputs = [ docutils installShellFiles ];
+ propagatedBuildInputs = [
+ google_api_python_client simplejson oauth2client setuptools xdg
+ ];
+
+ postInstall = ''
+ rst2man goobook.1.rst goobook.1
+ installManPage goobook.1
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Access your Google contacts from the command line";
+ longDescription = ''
+ The purpose of GooBook is to make it possible to use your Google Contacts
+ from the command-line and from MUAs such as Mutt.
+ It can be used from Mutt the same way as abook.
+ '';
+ homepage = "https://pypi.python.org/pypi/goobook";
+ changelog = "https://gitlab.com/goobook/goobook/-/blob/${version}/CHANGES.rst";
+ license = licenses.gpl3;
+ maintainers = with maintainers; [ primeos ];
+ platforms = platforms.unix;
+ };
+}