1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 ibm-cloud-sdk-core, 6 pytest-rerunfailures, 7 pytestCheckHook, 8 python-dateutil, 9 python-dotenv, 10 pythonOlder, 11 requests, 12 setuptools, 13 responses, 14 websocket-client, 15}: 16 17buildPythonPackage rec { 18 pname = "ibm-watson"; 19 version = "10.0.0"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "watson-developer-cloud"; 26 repo = "python-sdk"; 27 tag = "v${version}"; 28 hash = "sha256-06PDDzFasY1vmzejxDiTL/O8R6iAhSpWjCkVg9/l46U="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 ibm-cloud-sdk-core 35 python-dateutil 36 requests 37 websocket-client 38 ]; 39 40 nativeCheckInputs = [ 41 pytest-rerunfailures 42 pytestCheckHook 43 python-dotenv 44 responses 45 ]; 46 47 # FileNotFoundError: [Errno 2] No such file or directory: './auth.json' 48 disabledTestPaths = [ 49 "test/integration/test_assistant_v2.py" 50 "test/integration/test_natural_language_understanding_v1.py" 51 ]; 52 53 pythonImportsCheck = [ "ibm_watson" ]; 54 55 meta = with lib; { 56 description = "Client library to use the IBM Watson Services"; 57 homepage = "https://github.com/watson-developer-cloud/python-sdk"; 58 changelog = "https://github.com/watson-developer-cloud/python-sdk/blob/${src.tag}/CHANGELOG.md"; 59 license = licenses.asl20; 60 maintainers = with maintainers; [ globin ]; 61 }; 62}