python3Packages.cohere: init at 4.3.1
This commit is contained in:
parent
bc8b4af988
commit
58970f4c1e
47
pkgs/development/python-modules/cohere/default.nix
Normal file
47
pkgs/development/python-modules/cohere/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user