88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, responses
|
|
, pytestCheckHook
|
|
, python-dotenv
|
|
, pytest-rerunfailures
|
|
, tox
|
|
, requests
|
|
, python-dateutil
|
|
, websocket-client
|
|
, ibm-cloud-sdk-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ibm-watson";
|
|
version = "5.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "watson-developer-cloud";
|
|
repo = "python-sdk";
|
|
rev = "v${version}";
|
|
sha256 = "0i0zs38hqgh2510b3690nrq2pvx7wcdlv9iyjgsrfl7gid8qi3ng";
|
|
};
|
|
|
|
checkInputs = [
|
|
responses
|
|
pytestCheckHook
|
|
python-dotenv
|
|
pytest-rerunfailures
|
|
tox
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
python-dateutil
|
|
websocket-client
|
|
ibm-cloud-sdk-core
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace websocket-client==1.1.0 websocket-client>=1.1.0
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|