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