1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
ibm-cloud-sdk-core,
pytest-rerunfailures,
pytestCheckHook,
python-dateutil,
python-dotenv,
pythonOlder,
requests,
setuptools,
responses,
websocket-client,
}:
buildPythonPackage rec {
pname = "ibm-watson";
version = "8.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "watson-developer-cloud";
repo = "python-sdk";
rev = "refs/tags/v${version}";
hash = "sha256-r7A5i17KIy1pBrj01yeknfrOFjb5yZco8ZOc7tlFM7k=";
};
build-system = [ setuptools ];
dependencies = [
ibm-cloud-sdk-core
python-dateutil
requests
websocket-client
];
nativeCheckInputs = [
pytest-rerunfailures
pytestCheckHook
python-dotenv
responses
];
pythonImportsCheck = [ "ibm_watson" ];
meta = with lib; {
description = "Client library to use the IBM Watson Services";
homepage = "https://github.com/watson-developer-cloud/python-sdk";
changelog = "https://github.com/watson-developer-cloud/python-sdk/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ globin ];
};
}
|