1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, responses 5, pytestCheckHook 6, python-dotenv 7, pytest-rerunfailures 8, tox 9, requests 10, python-dateutil 11, websocket-client 12, ibm-cloud-sdk-core 13}: 14 15buildPythonPackage rec { 16 pname = "ibm-watson"; 17 version = "5.3.0"; 18 19 src = fetchFromGitHub { 20 owner = "watson-developer-cloud"; 21 repo = "python-sdk"; 22 rev = "v${version}"; 23 sha256 = "0g63h7rf0710bxcsr115857bvz69sl2g5d13k5a7qi7hjh33bxrk"; 24 }; 25 26 checkInputs = [ 27 responses 28 pytestCheckHook 29 python-dotenv 30 pytest-rerunfailures 31 tox 32 ]; 33 34 propagatedBuildInputs = [ 35 requests 36 python-dateutil 37 websocket-client 38 ibm-cloud-sdk-core 39 ]; 40 41 postPatch = '' 42 substituteInPlace setup.py \ 43 --replace websocket-client==1.1.0 websocket-client>=1.1.0 44 ''; 45 46 meta = with lib; { 47 description = "Client library to use the IBM Watson Services"; 48 homepage = "https://github.com/watson-developer-cloud/python-sdk"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ globin lheckemann ]; 51 }; 52}