2017-02-14 19:36:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages,
|
|
|
|
asciidoc, libxml2, libxslt, docbook_xml_xslt }:
|
2010-04-12 23:03:22 +02:00
|
|
|
|
2016-07-23 18:59:01 +02:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2018-06-19 12:53:25 +02:00
|
|
|
version = "7.2.1";
|
2012-04-30 14:47:30 +02:00
|
|
|
name = "offlineimap-${version}";
|
2013-07-30 21:30:34 +02:00
|
|
|
namePrefix = "";
|
2010-04-12 23:03:22 +02:00
|
|
|
|
2016-01-02 17:58:36 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OfflineIMAP";
|
|
|
|
repo = "offlineimap";
|
|
|
|
rev = "v${version}";
|
2018-06-19 12:53:25 +02:00
|
|
|
sha256 = "1m5i74baazwazqp98ssma968rnwzfl1nywb7icf0swc8447ps97q";
|
2010-04-12 23:03:22 +02:00
|
|
|
};
|
|
|
|
|
2017-02-14 19:36:02 +01: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 17:25:11 +01:00
|
|
|
doCheck = false;
|
2010-04-12 23:03:22 +02:00
|
|
|
|
2017-02-14 19:36:02 +01:00
|
|
|
nativeBuildInputs = [ asciidoc libxml2 libxslt docbook_xml_xslt ];
|
2017-09-04 21:55:24 +02:00
|
|
|
propagatedBuildInputs = [ pythonPackages.six pythonPackages.kerberos ];
|
2013-04-12 13:13:32 +02:00
|
|
|
|
2017-02-14 19:36:02 +01: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 23:03:22 +02:00
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://offlineimap.org;
|
2016-01-02 18:15:48 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
2010-04-12 23:03:22 +02:00
|
|
|
};
|
|
|
|
}
|