1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, azure-common 6, azure-core 7, azure-storage-blob 8, boto3 9, google-cloud-storage 10, requests 11, moto 12, paramiko 13, pytestCheckHook 14}: 15 16buildPythonPackage rec { 17 pname = "smart-open"; 18 version = "6.2.0"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchFromGitHub { 24 owner = "RaRe-Technologies"; 25 repo = "smart_open"; 26 rev = "v${version}"; 27 sha256 = "sha256-AtFIluoI2QeHUX2dclEmOxsv/cEtusWq7GyViRBhL5g="; 28 }; 29 30 propagatedBuildInputs = [ 31 azure-common 32 azure-core 33 azure-storage-blob 34 boto3 35 google-cloud-storage 36 requests 37 ]; 38 39 checkInputs = [ 40 moto 41 paramiko 42 pytestCheckHook 43 ]; 44 45 pytestFlagsArray = [ 46 "smart_open" 47 ]; 48 49 pythonImportsCheck = [ 50 "smart_open" 51 ]; 52 53 meta = with lib; { 54 description = "Library for efficient streaming of very large file"; 55 homepage = "https://github.com/RaRe-Technologies/smart_open"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ jyp ]; 58 }; 59}