diff options
Diffstat (limited to 'pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix')
-rw-r--r-- | pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix | 70 |
1 files changed, 38 insertions, 32 deletions
diff --git a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix index 46a5eb3e36912..1bb75ee2c86ed 100644 --- a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix +++ b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix @@ -1,32 +1,32 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyjwt -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, responses -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pyjwt, + pytestCheckHook, + python-dateutil, + pythonAtLeast, + pythonOlder, + requests, + responses, + setuptools, }: buildPythonPackage rec { pname = "ibm-cloud-sdk-core"; - version = "3.19.2"; + version = "3.20.0"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-qodN9ALyAfzsrCAiPT3t02JJRCBqFCNVWlsQP+4d3do="; + hash = "sha256-CqbZcEP1ianvRRpx527KBjQTjvGBzlSmoKY1Pe5MXRA="; }; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ pyjwt python-dateutil requests @@ -37,22 +37,28 @@ buildPythonPackage rec { responses ]; - disabledTests = [ - # Various tests try to access credential files which are not included with the source distribution - "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" - # assertion error due to requests brotli support - "test_http_client" - ]; + disabledTests = + [ + # Various tests try to access credential files which are not included with the source distribution + "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" + # assertion error due to requests brotli support + "test_http_client" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # Tests are blocking or failing + "test_abstract_class_instantiation" + "test_abstract_class_instantiation" + ]; disabledTestPaths = [ "test/test_container_token_manager.py" |