2017-02-14 10:36:02 -08:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages,
|
|
|
|
asciidoc, libxml2, libxslt, docbook_xml_xslt }:
|
2010-04-12 14:03:22 -07:00
|
|
|
|
2016-07-23 09:59:01 -07:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-07-02 07:23:26 -07:00
|
|
|
version = "7.1.1";
|
2012-04-30 05:47:30 -07:00
|
|
|
name = "offlineimap-${version}";
|
2013-07-30 12:30:34 -07:00
|
|
|
namePrefix = "";
|
2010-04-12 14:03:22 -07:00
|
|
|
|
2016-01-02 08:58:36 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OfflineIMAP";
|
|
|
|
repo = "offlineimap";
|
|
|
|
rev = "v${version}";
|
2017-07-02 07:23:26 -07:00
|
|
|
sha256 = "12fv6fzi3cb0hkvs4h5vj2i440d85wzjjyjl90zvyxvlfy0pmljl";
|
2010-04-12 14:03:22 -07:00
|
|
|
};
|
|
|
|
|
2017-02-14 10:36:02 -08:00
|
|
|
postPatch = ''
|
|
|
|
# Skip xmllint to stop failures due to no network access
|
|
|
|
sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |"
|
|
|
|
'';
|
|
|
|
|
2011-01-03 08:25:11 -08:00
|
|
|
doCheck = false;
|
2010-04-12 14:03:22 -07:00
|
|
|
|
2017-02-14 10:36:02 -08:00
|
|
|
nativeBuildInputs = [ asciidoc libxml2 libxslt docbook_xml_xslt ];
|
2016-10-13 15:03:12 -07:00
|
|
|
propagatedBuildInputs = [ pythonPackages.six ];
|
2013-04-12 04:13:32 -07:00
|
|
|
|
2017-02-14 10:36:02 -08:00
|
|
|
postInstall = ''
|
|
|
|
make -C docs man
|
|
|
|
install -D -m 644 docs/offlineimap.1 ''${!outputMan}/share/man/man1/offlineimap.1
|
|
|
|
install -D -m 644 docs/offlineimapui.7 ''${!outputMan}/share/man/man7/offlineimapui.7
|
|
|
|
'';
|
|
|
|
|
2010-04-12 14:03:22 -07:00
|
|
|
meta = {
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
|
2012-04-30 05:47:30 -07:00
|
|
|
homepage = "http://offlineimap.org";
|
2016-01-02 09:15:48 -08:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
2010-04-12 14:03:22 -07:00
|
|
|
};
|
|
|
|
}
|