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