depot/third_party/nixpkgs/pkgs/development/python-modules/ibm-watson/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

53 lines
1.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.0";
src = fetchFromGitHub {
owner = "watson-developer-cloud";
repo = "python-sdk";
rev = "v${version}";
sha256 = "1abink5mv9nw506nwm9hlvnr1lq6dkxxj2j12iwphcyd7xs63n2s";
};
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==0.48.0 websocket-client>=0.48.0 \
--replace ibm_cloud_sdk_core==3.3.6 ibm_cloud_sdk_core>=3.3.6
'';
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 ];
};
}