python3Packages.cohere: init at 4.3.1

This commit is contained in:
natsukium 2023-05-07 14:54:53 +09:00 committed by Yt
parent bc8b4af988
commit 58970f4c1e
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, poetry-core
, pythonOlder
, requests
, aiohttp
, backoff
}:
buildPythonPackage rec {
pname = "cohere";
version = "4.3.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-koIDk7JPKb8lhBkwaX/o76AuaNrFaeapVp54RRxEY9U=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
aiohttp
backoff
];
# tests require CO_API_KEY
doCheck = false;
pythonImportsCheck = [
"cohere"
];
meta = with lib; {
description = "Simplify interfacing with the Cohere API";
homepage = "https://docs.cohere.com/docs";
changelog = "https://github.com/cohere-ai/cohere-python/blob/main/CHANGELOG.md#${builtins.replaceStrings ["."] [""] version}";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}

View File

@ -1659,6 +1659,8 @@ self: super: with self; {
cexprtk = callPackage ../development/python-modules/cexprtk { };
cohere = callPackage ../development/python-modules/cohere { };
coincurve = callPackage ../development/python-modules/coincurve {
inherit (pkgs) secp256k1;
};