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