nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 ibm-cloud-sdk-core,
6 pytest-rerunfailures,
7 pytestCheckHook,
8 python-dateutil,
9 python-dotenv,
10 requests,
11 setuptools,
12 responses,
13 websocket-client,
14}:
15
16buildPythonPackage rec {
17 pname = "ibm-watson";
18 version = "11.2.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "watson-developer-cloud";
23 repo = "python-sdk";
24 tag = "v${version}";
25 hash = "sha256-z+sGfYbPZcHQh6JGdVC2DDFHd0VIgC2GmvGvN+hrXU0=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 ibm-cloud-sdk-core
32 python-dateutil
33 requests
34 websocket-client
35 ];
36
37 nativeCheckInputs = [
38 pytest-rerunfailures
39 pytestCheckHook
40 python-dotenv
41 responses
42 ];
43
44 # FileNotFoundError: [Errno 2] No such file or directory: './auth.json'
45 disabledTestPaths = [
46 "test/integration/test_assistant_v2.py"
47 "test/integration/test_natural_language_understanding_v1.py"
48 ];
49
50 pythonImportsCheck = [ "ibm_watson" ];
51
52 meta = {
53 description = "Client library to use the IBM Watson Services";
54 homepage = "https://github.com/watson-developer-cloud/python-sdk";
55 changelog = "https://github.com/watson-developer-cloud/python-sdk/blob/${src.tag}/CHANGELOG.md";
56 license = lib.licenses.asl20;
57 maintainers = [ ];
58 };
59}