nixpkgs/pkgs/development/python-modules/goobook/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, docutils, installShellFiles
2020-09-07 17:55:56 +01:00
, google_api_python_client, simplejson, oauth2client, setuptools, xdg
}:
buildPythonPackage rec {
pname = "goobook";
2020-09-07 17:55:56 +01:00
version = "3.5";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2020-09-07 17:55:56 +01:00
sha256 = "1rmfyma3gwdf5mrw4l3j66y86fy8hgdbd0z4a5kck0kcm3hy34j9";
};
nativeBuildInputs = [ docutils installShellFiles ];
propagatedBuildInputs = [
2020-09-07 17:55:56 +01:00
google_api_python_client simplejson oauth2client setuptools xdg
];
postInstall = ''
rst2man goobook.1.rst goobook.1
installManPage goobook.1
'';
meta = with stdenv.lib; {
2020-09-07 17:55:56 +01:00
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";
2020-09-07 17:55:56 +01:00
changelog = "https://gitlab.com/goobook/goobook/-/blob/${version}/CHANGES.rst";
license = licenses.gpl3;
maintainers = with maintainers; [ primeos ];
platforms = platforms.unix;
};
}