python3Packages.ibm-watson: add pythonImportsCheck
This commit is contained in:
parent
b3309be934
commit
d746a9c2d8
1 changed files with 15 additions and 7 deletions
|
@ -10,11 +10,15 @@
|
||||||
, python-dateutil
|
, python-dateutil
|
||||||
, websocket-client
|
, websocket-client
|
||||||
, ibm-cloud-sdk-core
|
, ibm-cloud-sdk-core
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ibm-watson";
|
pname = "ibm-watson";
|
||||||
version = "5.3.1";
|
version = "5.3.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "watson-developer-cloud";
|
owner = "watson-developer-cloud";
|
||||||
|
@ -23,6 +27,13 @@ buildPythonPackage rec {
|
||||||
sha256 = "1x6r8j0xyi81jb0q4pzr6l7aglykrwqz8nw45clv79v33i2sgdcs";
|
sha256 = "1x6r8j0xyi81jb0q4pzr6l7aglykrwqz8nw45clv79v33i2sgdcs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
python-dateutil
|
||||||
|
websocket-client
|
||||||
|
ibm-cloud-sdk-core
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
responses
|
responses
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
@ -31,18 +42,15 @@ buildPythonPackage rec {
|
||||||
tox
|
tox
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
requests
|
|
||||||
python-dateutil
|
|
||||||
websocket-client
|
|
||||||
ibm-cloud-sdk-core
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace websocket-client==1.1.0 websocket-client>=1.1.0
|
--replace websocket-client==1.1.0 websocket-client>=1.1.0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"ibm_watson"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Client library to use the IBM Watson Services";
|
description = "Client library to use the IBM Watson Services";
|
||||||
homepage = "https://github.com/watson-developer-cloud/python-sdk";
|
homepage = "https://github.com/watson-developer-cloud/python-sdk";
|
||||||
|
|
Loading…
Reference in a new issue