python3.pkgs.ibm-watson: init at 5.1.0
Co-authored-by: Linus Heckemann <git@sphalerite.org>
This commit is contained in:
parent
04eaecb612
commit
97f3d0b749
53
pkgs/development/python-modules/ibm-watson/default.nix
Normal file
53
pkgs/development/python-modules/ibm-watson/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, responses
|
||||
, pytestCheckHook
|
||||
, python-dotenv
|
||||
, pytest-rerunfailures
|
||||
, tox
|
||||
, requests
|
||||
, python-dateutil
|
||||
, websocket_client
|
||||
, ibm-cloud-sdk-core
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ibm-watson";
|
||||
version = "5.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "watson-developer-cloud";
|
||||
repo = "python-sdk";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256:16llw7kybwndgf2ryrg5698v4j3rhrdx52lf3kdzhxdi0q3kmwdn";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
responses
|
||||
pytestCheckHook
|
||||
python-dotenv
|
||||
pytest-rerunfailures
|
||||
tox
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
python-dateutil
|
||||
websocket_client
|
||||
ibm-cloud-sdk-core
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace websocket-client==0.48.0 websocket-client>=0.48.0 \
|
||||
--replace ibm_cloud_sdk_core==3.3.6 ibm_cloud_sdk_core>=3.3.6
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Client library to use the IBM Watson Services";
|
||||
homepage = "https://github.com/watson-developer-cloud/python-sdk";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ globin lheckemann ];
|
||||
};
|
||||
}
|
@ -3199,6 +3199,8 @@ in {
|
||||
|
||||
ibm-cloud-sdk-core = callPackage ../development/python-modules/ibm-cloud-sdk-core { };
|
||||
|
||||
ibm-watson = callPackage ../development/python-modules/ibm-watson { };
|
||||
|
||||
icalendar = callPackage ../development/python-modules/icalendar { };
|
||||
|
||||
icecream = callPackage ../development/python-modules/icecream { };
|
||||
|
Loading…
Reference in New Issue
Block a user