Files
nixpkgs/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

70 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyjwt,
pytestCheckHook,
python-dateutil,
requests,
responses,
setuptools,
}:
buildPythonPackage rec {
pname = "ibm-cloud-sdk-core";
version = "3.24.2";
pyproject = true;
src = fetchFromGitHub {
owner = "IBM";
repo = "python-sdk-core";
tag = "v${version}";
hash = "sha256-xw7jEDr/5Qmd4+riAqFzTTFfmX/gQdlbzNZ8pua0hIs=";
};
pythonRelaxDeps = [ "requests" ];
build-system = [ setuptools ];
dependencies = [
pyjwt
python-dateutil
requests
];
nativeCheckInputs = [
pytestCheckHook
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"
# Tests require network access
"test_tls_v1_2"
];
disabledTestPaths = [
# Tests require credentials
"test_integration/"
];
meta = {
description = "Client library for the IBM Cloud services";
homepage = "https://github.com/IBM/python-sdk-core";
changelog = "https://github.com/IBM/python-sdk-core/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
}