1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyjwt 5, pytestCheckHook 6, python-dateutil 7, pythonOlder 8, requests 9, responses 10, setuptools 11}: 12 13buildPythonPackage rec { 14 pname = "ibm-cloud-sdk-core"; 15 version = "3.18.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-vytpQHYZcMFLU/yPwTWvVnxYuXCdsyFL5AOjg91Ryrs="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 pyjwt 31 python-dateutil 32 requests 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 responses 38 ]; 39 40 disabledTests = [ 41 # Various tests try to access credential files which are not included with the source distribution 42 "test_configure_service" 43 "test_cp4d_authenticator" 44 "test_cwd" 45 "test_files_dict" 46 "test_files_duplicate_parts" 47 "test_files_list" 48 "test_get_authenticator" 49 "test_gzip_compression_external" 50 "test_iam" 51 "test_read_external_sources_2" 52 "test_retry_config_external" 53 # assertion error due to requests brotli support 54 "test_http_client" 55 ]; 56 57 disabledTestPaths = [ 58 "test/test_container_token_manager.py" 59 # Tests require credentials 60 "test_integration/" 61 ]; 62 63 meta = with lib; { 64 description = "Client library for the IBM Cloud services"; 65 homepage = "https://github.com/IBM/python-sdk-core"; 66 changelog = "https://github.com/IBM/python-sdk-core/blob/v${version}/CHANGELOG.md"; 67 license = licenses.asl20; 68 maintainers = with maintainers; [ globin ]; 69 }; 70}