diff options
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.nix | 43 |
1 files changed, 43 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..a3d327275157 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/goobook/default.nix @@ -0,0 +1,43 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k +, docutils, installShellFiles +, google_api_python_client, simplejson, oauth2client, setuptools, xdg +}: + +buildPythonPackage rec { + pname = "goobook"; + version = "3.5.1"; + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "6e69aeaf69112d116302f0c42ca1904f3b6efd17f15cefc12c866206160293be"; + }; + + nativeBuildInputs = [ docutils installShellFiles ]; + propagatedBuildInputs = [ + google_api_python_client simplejson oauth2client setuptools xdg + ]; + + postInstall = '' + rst2man goobook.1.rst goobook.1 + installManPage goobook.1 + ''; + + doCheck = false; + + pythonImportsCheck = [ "goobook" ]; + + 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; + }; +} |