offlineimap: 7.3.4 -> 8.0.0 (#145527)

authored by Fabian Affolter and committed by GitHub 781ccc51 05c229b3

+16 -9
+16 -9
pkgs/tools/networking/offlineimap/default.nix
··· 1 { lib 2 , fetchFromGitHub 3 - , python2Packages 4 , asciidoc 5 , cacert 6 , docbook_xsl ··· 9 , libxslt 10 }: 11 12 - python2Packages.buildPythonApplication rec { 13 - version = "7.3.4"; 14 pname = "offlineimap"; 15 16 src = fetchFromGitHub { 17 owner = "OfflineIMAP"; 18 - repo = "offlineimap"; 19 rev = "v${version}"; 20 - sha256 = "sha256-sra2H0+5+LAIU3+uJnii+AYA05nuDyKVMW97rbaFOfI="; 21 }; 22 23 nativeBuildInputs = [ ··· 28 libxslt 29 ]; 30 31 - propagatedBuildInputs = with python2Packages; [ 32 - six 33 kerberos 34 rfc6555 35 - pysocks 36 ]; 37 38 postPatch = '' ··· 40 sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |" 41 42 # Provide CA certificates (Used when "sslcacertfile = OS-DEFAULT" is configured") 43 - sed -i offlineimap/utils/distro.py -e '/def get_os_sslcertfile():/a\ \ \ \ return "${cacert}/etc/ssl/certs/ca-bundle.crt"' 44 ''; 45 46 postInstall = '' ··· 51 52 # Test requires credentials 53 doCheck = false; 54 55 meta = with lib; { 56 description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
··· 1 { lib 2 , fetchFromGitHub 3 + , python3 4 , asciidoc 5 , cacert 6 , docbook_xsl ··· 9 , libxslt 10 }: 11 12 + python3.pkgs.buildPythonApplication rec { 13 pname = "offlineimap"; 14 + version = "8.0.0"; 15 16 src = fetchFromGitHub { 17 owner = "OfflineIMAP"; 18 + repo = "offlineimap3"; 19 rev = "v${version}"; 20 + sha256 = "0y3giaz9i8vvczlxkbwymfkn3vi9fv599dy4pc2pn2afxsl4mg2w"; 21 }; 22 23 nativeBuildInputs = [ ··· 28 libxslt 29 ]; 30 31 + propagatedBuildInputs = with python3.pkgs; [ 32 + certifi 33 + distro 34 + imaplib2 35 kerberos 36 + pysocks 37 rfc6555 38 + urllib3 39 ]; 40 41 postPatch = '' ··· 43 sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |" 44 45 # Provide CA certificates (Used when "sslcacertfile = OS-DEFAULT" is configured") 46 + sed -i offlineimap/utils/distro_utils.py -e '/def get_os_sslcertfile():/a\ \ \ \ return "${cacert}/etc/ssl/certs/ca-bundle.crt"' 47 ''; 48 49 postInstall = '' ··· 54 55 # Test requires credentials 56 doCheck = false; 57 + 58 + pythonImportsCheck = [ 59 + "offlineimap" 60 + ]; 61 62 meta = with lib; { 63 description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";