nixpkgs/pkgs/development/python-modules/ibm-watson/default.nix
2023-08-13 12:02:37 +02:00

55 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 ];
};
}