Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# dependencies fastavro, httpx, httpx-sse, pydantic, pydantic-core, requests, tokenizers, types-requests, typing-extensions,}:
buildPythonPackage rec { pname = "cohere"; version = "5.15.0"; pyproject = true;
src = fetchFromGitHub { owner = "cohere-ai"; repo = "cohere-python"; tag = version; hash = "sha256-X/6eAST9du6GT3j0d1xZuYfzN5p7rYlgGIIqv7V6vik="; };
build-system = [ poetry-core ];
dependencies = [ fastavro httpx httpx-sse pydantic pydantic-core requests tokenizers types-requests typing-extensions ];
# tests require CO_API_KEY doCheck = false;
pythonImportsCheck = [ "cohere" ];
meta = { description = "Simplify interfacing with the Cohere API"; homepage = "https://docs.cohere.com/docs"; changelog = "https://github.com/cohere-ai/cohere-python/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium ]; };}