4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, 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 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;
|
|
};
|
|
}
|