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