2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, responses
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dotenv
|
|
|
|
, pytest-rerunfailures
|
|
|
|
, tox
|
|
|
|
, requests
|
|
|
|
, python-dateutil
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2021-05-28 09:39:13 +00:00
|
|
|
, ibm-cloud-sdk-core
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ibm-watson";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "5.2.2";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "watson-developer-cloud";
|
|
|
|
repo = "python-sdk";
|
|
|
|
rev = "v${version}";
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-bK6lcTKAVwAJDb5LqKRWR/4wcOKx7bRwWYC+WB5qJE4=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
responses
|
|
|
|
pytestCheckHook
|
|
|
|
python-dotenv
|
|
|
|
pytest-rerunfailures
|
|
|
|
tox
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
python-dateutil
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-05-28 09:39:13 +00:00
|
|
|
ibm-cloud-sdk-core
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2021-07-14 22:03:04 +00:00
|
|
|
--replace websocket-client==1.1.0 websocket-client>=1.1.0
|
2021-05-28 09:39:13 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client library to use the IBM Watson Services";
|
|
|
|
homepage = "https://github.com/watson-developer-cloud/python-sdk";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ globin lheckemann ];
|
|
|
|
};
|
|
|
|
}
|