summary refs log tree commit diff
path: root/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix
blob: 8e7f4832c25463bee4766efc6339e50e7ac8785a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{ lib
, buildPythonPackage
, fetchPypi
, codecov
, pyjwt
, pylint
, pytestCheckHook
, pytest-cov
, python-dateutil
, requests
, responses
, tox
}:

buildPythonPackage rec {
  pname = "ibm-cloud-sdk-core";
  version = "3.10.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ab9520be99066ec41a24e31ac653c28953adc8fc349f0fa53a598e1802a79cd6";
  };

  checkInputs = [
    codecov
    pylint
    pytestCheckHook
    pytest-cov
    responses
    tox
  ];

  propagatedBuildInputs = [
    pyjwt
    python-dateutil
    requests
  ];

  # Various tests try to access credential files which are not included with the source distribution
  disabledTests = [
    "test_configure_service"
    "test_cp4d_authenticator"
    "test_cwd"
    "test_files_dict"
    "test_files_duplicate_parts"
    "test_files_list"
    "test_get_authenticator"
    "test_gzip_compression_external"
    "test_iam"
    "test_read_external_sources_2"
    "test_retry_config_external"
  ];

  meta = with lib; {
    description = "Client library for the IBM Cloud services";
    homepage = "https://github.com/IBM/python-sdk-core";
    license = licenses.asl20;
    maintainers = with maintainers; [ globin lheckemann ];
  };
}