offlineimap: 7.3.4 -> 8.0.0 (#145527)
This commit is contained in:
parent
05c229b325
commit
781ccc51df
|
@ -1,6 +1,6 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python2Packages
|
||||
, python3
|
||||
, asciidoc
|
||||
, cacert
|
||||
, docbook_xsl
|
||||
|
@ -9,15 +9,15 @@
|
|||
, libxslt
|
||||
}:
|
||||
|
||||
python2Packages.buildPythonApplication rec {
|
||||
version = "7.3.4";
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "offlineimap";
|
||||
version = "8.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OfflineIMAP";
|
||||
repo = "offlineimap";
|
||||
repo = "offlineimap3";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-sra2H0+5+LAIU3+uJnii+AYA05nuDyKVMW97rbaFOfI=";
|
||||
sha256 = "0y3giaz9i8vvczlxkbwymfkn3vi9fv599dy4pc2pn2afxsl4mg2w";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -28,11 +28,14 @@ python2Packages.buildPythonApplication rec {
|
|||
libxslt
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python2Packages; [
|
||||
six
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
certifi
|
||||
distro
|
||||
imaplib2
|
||||
kerberos
|
||||
rfc6555
|
||||
pysocks
|
||||
rfc6555
|
||||
urllib3
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -40,7 +43,7 @@ python2Packages.buildPythonApplication rec {
|
|||
sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |"
|
||||
|
||||
# Provide CA certificates (Used when "sslcacertfile = OS-DEFAULT" is configured")
|
||||
sed -i offlineimap/utils/distro.py -e '/def get_os_sslcertfile():/a\ \ \ \ return "${cacert}/etc/ssl/certs/ca-bundle.crt"'
|
||||
sed -i offlineimap/utils/distro_utils.py -e '/def get_os_sslcertfile():/a\ \ \ \ return "${cacert}/etc/ssl/certs/ca-bundle.crt"'
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
@ -52,6 +55,10 @@ python2Packages.buildPythonApplication rec {
|
|||
# Test requires credentials
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"offlineimap"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
|
||||
homepage = "http://offlineimap.org";
|
||||
|
|
Loading…
Reference in a new issue