Files
nixpkgs/pkgs/development/python-modules/ibm-watson/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

60 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
ibm-cloud-sdk-core,
pytest-rerunfailures,
pytestCheckHook,
python-dateutil,
python-dotenv,
requests,
setuptools,
responses,
websocket-client,
}:
buildPythonPackage rec {
pname = "ibm-watson";
version = "11.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "watson-developer-cloud";
repo = "python-sdk";
tag = "v${version}";
hash = "sha256-6xifendLRHekTOXDGEpyYxzucg9hRf85gwxS1FyBkCc=";
};
build-system = [ setuptools ];
dependencies = [
ibm-cloud-sdk-core
python-dateutil
requests
websocket-client
];
nativeCheckInputs = [
pytest-rerunfailures
pytestCheckHook
python-dotenv
responses
];
# FileNotFoundError: [Errno 2] No such file or directory: './auth.json'
disabledTestPaths = [
"test/integration/test_assistant_v2.py"
"test/integration/test_natural_language_understanding_v1.py"
];
pythonImportsCheck = [ "ibm_watson" ];
meta = {
description = "Client library to use the IBM Watson Services";
homepage = "https://github.com/watson-developer-cloud/python-sdk";
changelog = "https://github.com/watson-developer-cloud/python-sdk/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
}