2018-10-16 21:41:29 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, oauth2client
|
|
|
|
, gdata
|
2018-12-26 02:30:48 +00:00
|
|
|
, google_api_python_client
|
2018-10-16 21:41:29 +01:00
|
|
|
, simplejson
|
|
|
|
, httplib2
|
|
|
|
, keyring
|
|
|
|
, six
|
|
|
|
, rsa
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "goobook";
|
2018-11-04 10:35:00 +00:00
|
|
|
version = "3.1";
|
2018-10-16 21:41:29 +01:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:00 +00:00
|
|
|
sha256 = "139a98d646d5c5963670944d5cfcc1a107677ee11fa98329221bd600457fda6d";
|
2018-10-16 21:41:29 +01:00
|
|
|
};
|
|
|
|
|
2018-12-26 02:30:48 +00:00
|
|
|
propagatedBuildInputs = [ oauth2client gdata google_api_python_client simplejson httplib2 keyring six rsa ];
|
2018-10-16 21:41:29 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i '/distribute/d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Search your google contacts from the command-line or mutt";
|
|
|
|
homepage = https://pypi.python.org/pypi/goobook;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ lovek323 hbunke ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|