Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ibm-cloud-sdk-core / default.nix
blobe8671529be3f3f03cdb3ad3354c6e9584b9680bd
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pyjwt
5 , pytestCheckHook
6 , python-dateutil
7 , pythonOlder
8 , requests
9 , responses
12 buildPythonPackage rec {
13   pname = "ibm-cloud-sdk-core";
14   version = "3.17.2";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-lIpUG/Z8pVdQnSBvWyaAxfBxhyQQDBKRSi/zr3qtSV0=";
22   };
24   propagatedBuildInputs = [
25     pyjwt
26     python-dateutil
27     requests
28   ];
30   nativeCheckInputs = [
31     pytestCheckHook
32     responses
33   ];
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   ];
52   disabledTestPaths = [
53     "test/test_container_token_manager.py"
54   ];
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   };