Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 80 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, aiolimiter, azure-identity, azure-storage-blob, buildPythonPackage, fetchPypi, hatchling, httpx, json-repair, openai, pydantic, pytest-asyncio, pytestCheckHook, pythonOlder, tenacity, tiktoken,}:
buildPythonPackage rec { pname = "fnllm"; version = "0.0.12"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi { inherit pname version; hash = "sha256-qWZ//i1Xd6vWp3TlZz+TNJQGb1Ym8/edn4BV8e5wkjM="; };
build-system = [ hatchling ];
dependencies = [ aiolimiter httpx json-repair pydantic tenacity ];
optional-dependencies = { azure = [ azure-identity azure-storage-blob ]; openai = [ openai tiktoken ]; };
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "fnllm" ];
disabledTests = [ # Tests require network access "chat" "embeddings" "rate_limited" "test_default_operations" "test_estimate_request_tokens" "test_replace_value" ];
disabledTestPaths = [ "tests/unit/caching/test_blob.py" ];
meta = { description = "A function-based LLM protocol and wrapper"; homepage = "https://github.com/microsoft/essex-toolkit/tree/main/python/fnllm"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}