2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-08-22 20:05:09 +00:00
|
|
|
, ibm-cloud-sdk-core
|
|
|
|
, pytest-rerunfailures
|
2021-05-28 09:39:13 +00:00
|
|
|
, pytestCheckHook
|
2023-08-22 20:05:09 +00:00
|
|
|
, python-dateutil
|
2021-05-28 09:39:13 +00:00
|
|
|
, python-dotenv
|
2023-08-22 20:05:09 +00:00
|
|
|
, pythonOlder
|
2021-05-28 09:39:13 +00:00
|
|
|
, requests
|
2023-08-22 20:05:09 +00:00
|
|
|
, responses
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ibm-watson";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "8.0.0";
|
2022-01-27 00:19:43 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "watson-developer-cloud";
|
|
|
|
repo = "python-sdk";
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-p2LyR7Fxd0Ny6QCypAWIusnINuhWAhWOnRfZ14FKvro=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
ibm-cloud-sdk-core
|
2022-01-27 00:19:43 +00:00
|
|
|
python-dateutil
|
2023-08-22 20:05:09 +00:00
|
|
|
requests
|
2022-01-27 00:19:43 +00:00
|
|
|
websocket-client
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
pytest-rerunfailures
|
2021-05-28 09:39:13 +00:00
|
|
|
pytestCheckHook
|
|
|
|
python-dotenv
|
2023-08-22 20:05:09 +00:00
|
|
|
responses
|
2021-05-28 09:39:13 +00:00
|
|
|
];
|
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ibm_watson"
|
|
|
|
];
|
|
|
|
|
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";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/watson-developer-cloud/python-sdk/blob/v${version}/CHANGELOG.md";
|
2021-05-28 09:39:13 +00:00
|
|
|
license = licenses.asl20;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
}
|