c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ibm-cloud-sdk-core
|
|
, pytest-rerunfailures
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, python-dotenv
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ibm-watson";
|
|
version = "7.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "watson-developer-cloud";
|
|
repo = "python-sdk";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-f/nf9WFiUNDQBkFNMV16EznCw0TN9L4fDIPQ/j4B1Sc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|