python3Packages.smart-open: 6.3.0 -> 6.4.0

+36 -13
+36 -13
pkgs/development/python-modules/smart-open/default.nix
··· 11 11 , moto 12 12 , paramiko 13 13 , pytestCheckHook 14 + , responses 14 15 }: 15 16 16 17 buildPythonPackage rec { 17 18 pname = "smart-open"; 18 - version = "6.3.0"; 19 + version = "6.4.0"; 19 20 format = "setuptools"; 20 21 21 22 disabled = pythonOlder "3.6"; ··· 24 25 owner = "RaRe-Technologies"; 25 26 repo = "smart_open"; 26 27 rev = "refs/tags/v${version}"; 27 - hash = "sha256-sVKrCph5M7xsE7gtzsP/eVEbZyFfoucW3p30YYpwVFI="; 28 + hash = "sha256-fciNaVw603FAcgrSrND+LEycJffmnFQij2ZpatYZ/e4="; 29 + }; 30 + 31 + passthru.optional-dependencies = { 32 + s3 = [ 33 + boto3 34 + ]; 35 + gcs = [ 36 + google-cloud-storage 37 + ]; 38 + azure = [ 39 + azure-storage-blob 40 + azure-common 41 + azure-core 42 + ]; 43 + http = [ 44 + requests 45 + ]; 46 + webhdfs = [ 47 + requests 48 + ]; 49 + ssh = [ 50 + paramiko 51 + ]; 28 52 }; 29 53 30 - propagatedBuildInputs = [ 31 - azure-common 32 - azure-core 33 - azure-storage-blob 34 - boto3 35 - google-cloud-storage 36 - requests 54 + pythonImportsCheck = [ 55 + "smart_open" 37 56 ]; 38 57 39 58 nativeCheckInputs = [ 40 59 moto 41 - paramiko 42 60 pytestCheckHook 43 - ]; 61 + responses 62 + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 44 63 45 64 pytestFlagsArray = [ 46 65 "smart_open" 47 66 ]; 48 67 49 - pythonImportsCheck = [ 50 - "smart_open" 68 + disabledTests = [ 69 + # https://github.com/RaRe-Technologies/smart_open/issues/784 70 + "test_https_seek_forward" 71 + "test_seek_from_current" 72 + "test_seek_from_end" 73 + "test_seek_from_start" 51 74 ]; 52 75 53 76 meta = with lib; {