blob: 2221286d7f3c5c6123e2ba215ab10eee59452e57 (
plain)
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
57
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
ibm-cloud-sdk-core,
pytest-rerunfailures,
pytestCheckHook,
python-dateutil,
python-dotenv,
requests,
setuptools,
responses,
websocket-client,
}:
buildPythonPackage rec {
pname = "ibm-watson";
version = "11.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "watson-developer-cloud";
repo = "python-sdk";
tag = "v${version}";
hash = "sha256-6xifendLRHekTOXDGEpyYxzucg9hRf85gwxS1FyBkCc=";
};
build-system = [ setuptools ];
dependencies = [
ibm-cloud-sdk-core
python-dateutil
requests
websocket-client
];
nativeCheckInputs = [
pytest-rerunfailures
pytestCheckHook
python-dotenv
responses
];
# FileNotFoundError: [Errno 2] No such file or directory: './auth.json'
disabledTestPaths = [
"test/integration/test_assistant_v2.py"
"test/integration/test_natural_language_understanding_v1.py"
];
pythonImportsCheck = [ "ibm_watson" ];
meta = {
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/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|