2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k
|
2020-09-08 13:56:14 +01:00
|
|
|
, docutils, installShellFiles
|
2020-09-07 17:55:56 +01:00
|
|
|
, google_api_python_client, simplejson, oauth2client, setuptools, xdg
|
2018-10-16 21:41:29 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "goobook";
|
2020-12-02 06:09:15 +00:00
|
|
|
version = "3.5.1";
|
2018-12-27 20:08:57 +00:00
|
|
|
disabled = !isPy3k;
|
2018-10-16 21:41:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-02 06:09:15 +00:00
|
|
|
sha256 = "6e69aeaf69112d116302f0c42ca1904f3b6efd17f15cefc12c866206160293be";
|
2018-10-16 21:41:29 +01:00
|
|
|
};
|
|
|
|
|
2020-09-08 13:56:14 +01:00
|
|
|
nativeBuildInputs = [ docutils installShellFiles ];
|
2019-10-14 11:58:41 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-09-07 17:55:56 +01:00
|
|
|
google_api_python_client simplejson oauth2client setuptools xdg
|
2019-10-14 11:58:41 +01:00
|
|
|
];
|
2018-10-16 21:41:29 +01:00
|
|
|
|
2020-09-08 13:56:14 +01:00
|
|
|
postInstall = ''
|
|
|
|
rst2man goobook.1.rst goobook.1
|
|
|
|
installManPage goobook.1
|
|
|
|
'';
|
|
|
|
|
2020-12-02 19:20:41 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "goobook" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
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";
|
2018-10-16 21:41:29 +01:00
|
|
|
license = licenses.gpl3;
|
2018-12-27 20:08:57 +00:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2018-10-16 21:41:29 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|