offlineimap: 7.3.4 -> 8.0.0 (#145527)

This commit is contained in:
Fabian Affolter 2021-11-14 01:46:19 +01:00 committed by GitHub
parent 05c229b325
commit 781ccc51df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, python2Packages , python3
, asciidoc , asciidoc
, cacert , cacert
, docbook_xsl , docbook_xsl
@ -9,15 +9,15 @@
, libxslt , libxslt
}: }:
python2Packages.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
version = "7.3.4";
pname = "offlineimap"; pname = "offlineimap";
version = "8.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OfflineIMAP"; owner = "OfflineIMAP";
repo = "offlineimap"; repo = "offlineimap3";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-sra2H0+5+LAIU3+uJnii+AYA05nuDyKVMW97rbaFOfI="; sha256 = "0y3giaz9i8vvczlxkbwymfkn3vi9fv599dy4pc2pn2afxsl4mg2w";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -28,11 +28,14 @@ python2Packages.buildPythonApplication rec {
libxslt libxslt
]; ];
propagatedBuildInputs = with python2Packages; [ propagatedBuildInputs = with python3.pkgs; [
six certifi
distro
imaplib2
kerberos kerberos
rfc6555
pysocks pysocks
rfc6555
urllib3
]; ];
postPatch = '' postPatch = ''
@ -40,7 +43,7 @@ python2Packages.buildPythonApplication rec {
sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |" sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |"
# Provide CA certificates (Used when "sslcacertfile = OS-DEFAULT" is configured") # 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 = '' postInstall = ''
@ -52,6 +55,10 @@ python2Packages.buildPythonApplication rec {
# Test requires credentials # Test requires credentials
doCheck = false; doCheck = false;
pythonImportsCheck = [
"offlineimap"
];
meta = with lib; { meta = with lib; {
description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers"; description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
homepage = "http://offlineimap.org"; homepage = "http://offlineimap.org";