Merge pull request #291429 from fabaff/clarifai-bump

python311Packages.clarifai: 9.11.1 -> 10.1.0
This commit is contained in:
Fabian Affolter 2024-02-29 10:18:13 +01:00 committed by GitHub
commit f3d8707bea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
28 changed files with 1310 additions and 26 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pybind11
, setuptools
, wheel
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "chroma-hnswlib";
version = "0.7.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "chroma-core";
repo = "hnswlib";
rev = "refs/tags/${version}";
hash = "sha256-c4FvymqZy8AZKbh6Y8xZRjKAqYcUyZABRGc1u7vwlsk=";
};
nativeBuildInputs = [
numpy
pybind11
setuptools
wheel
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"hnswlib"
];
meta = with lib; {
description = "Header-only C++/python library for fast approximate nearest neighbors";
homepage = "https://github.com/chroma-core/hnswlib";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,160 @@
{ lib
, stdenv
, bcrypt
, build
, buildPythonPackage
, cargo
, chroma-hnswlib
, darwin
, fastapi
, fetchFromGitHub
, grpcio
, hypothesis
, importlib-resources
, kubernetes
, mmh3
, numpy
, onnxruntime
, openssl
, opentelemetry-api
, opentelemetry-exporter-otlp-proto-grpc
, opentelemetry-instrumentation-fastapi
, opentelemetry-sdk
, orjson
, overrides
, pkg-config
, posthog
, protobuf
, pulsar-client
, pydantic
, pypika
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, pyyaml
, requests
, rustc
, rustPlatform
, setuptools
, setuptools-scm
, tenacity
, tokenizers
, tqdm
, typer
, typing-extensions
, uvicorn
, zstd
}:
buildPythonPackage rec {
pname = "chromadb";
version = "0.4.23";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "chroma-core";
repo = "chroma";
rev = "refs/tags/${version}";
hash = "sha256-5gI+FE2jx4G/qahATLcYsONfPZZkk1RFFYK5nrpE0Ug=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-glItbT8gg5SAySnfx3A9TaPyFmd1R46JpAB1JnjBE5M=";
};
pythonRelaxDeps = [
"orjson"
];
nativeBuildInputs = [
cargo
pkg-config
protobuf
pythonRelaxDepsHook
rustc
rustPlatform.cargoSetupHook
setuptools
setuptools-scm
];
buildInputs = [
openssl
zstd
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
propagatedBuildInputs = [
bcrypt
build
chroma-hnswlib
fastapi
grpcio
importlib-resources
kubernetes
mmh3
numpy
onnxruntime
opentelemetry-api
opentelemetry-exporter-otlp-proto-grpc
opentelemetry-instrumentation-fastapi
opentelemetry-sdk
orjson
overrides
posthog
pulsar-client
pydantic
pypika
pyyaml
requests
tenacity
tokenizers
tqdm
typer
typing-extensions
uvicorn
];
nativeCheckInputs = [
hypothesis
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"chromadb"
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
pytestFlagsArray = [ "-x" ];
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTestPaths = [
# Tests require network access
"chromadb/test/property/test_cross_version_persist.py"
"chromadb/test/auth/test_simple_rbac_authz.py"
"chromadb/test/ef/test_default_ef.py"
"chromadb/test/test_api.py"
"chromadb/test/property/"
"chromadb/test/stress/"
];
meta = with lib; {
description = "The AI-native open-source embedding database";
homepage = "https://github.com/chroma-core/chroma";
changelog = "https://github.com/chroma-core/chroma/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,23 +1,29 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, clarifai-grpc
, fetchFromGitHub
, inquirerpy
, llama-index-core
, numpy
, opencv4
, pandas
, pillow
, pycocotools
, pypdf
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, pyyaml
, rich
, schema
, setuptools
, tqdm
, tritonclient
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "clarifai";
version = "9.11.1";
version = "10.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
@ -26,36 +32,59 @@ buildPythonPackage rec {
owner = "Clarifai";
repo = "clarifai-python";
rev = "refs/tags/${version}";
hash = "sha256-fVari/SnrUnEbrYefV9j2yA/EMJoGiLOV7q/DrS0AQ8=";
hash = "sha256-/2PIsSsYr/R7DuTX/ndBAOX7C3IaFqPw16ZAX8E1Vk8=";
};
pythonRelaxDeps = [
"clarifai-grpc"
];
pythonRemoveDeps = [
"opencv-python"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
clarifai-grpc
inquirerpy
llama-index-core
numpy
tqdm
opencv4
tritonclient
pandas
pillow
pypdf
pyyaml
rich
schema
pillow
pyyaml
tqdm
tritonclient
];
passthru.optional-dependencies = {
all = [
pycocotools
];
};
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTests = [
# require network access and API key
# Test requires network access and API key
"test_export_workflow_general"
];
disabledTestPaths = [
# require network access and API key
# Tests require network access and API key
"tests/test_app.py"
"tests/test_data_upload.py"
"tests/test_model_predict.py"
@ -63,14 +92,18 @@ buildPythonPackage rec {
"tests/test_search.py"
"tests/workflow/test_create_delete.py"
"tests/workflow/test_predict.py"
"tests/test_rag.py"
"clarifai/models/model_serving/repo_build/static_files/base_test.py"
];
pythonImportsCheck = [ "clarifai" ];
pythonImportsCheck = [
"clarifai"
];
meta = with lib; {
description = "Clarifai Python Utilities";
homepage = "https://github.com/Clarifai/clarifai-python";
changelog = "https://github.com/Clarifai/clarifai-python/releases/tag/${src.rev}";
changelog = "https://github.com/Clarifai/clarifai-python/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ natsukium ];
};

View File

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "dirtyjson";
version = "1.0.8";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-kMpKGPP/MM6EnRANz0oAOVPHnTojSO8Fbx2cIiMaJf0=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dirtyjson"
];
meta = with lib; {
description = "JSON decoder for Python that can extract data from the muck";
homepage = "https://github.com/codecobblers/dirtyjson";
license = with licenses; [ afl21 /* and */ mit];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, llama-index-llms-openai
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-agent-openai";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/agent/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
llama-index-llms-openai
];
pythonImportsCheck = [
"llama_index.agent.openai"
];
}

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, llama-index-embeddings-openai
, llama-index-llms-openai
, llama-index-vector-stores-chroma
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-cli";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
llama-index-embeddings-openai
llama-index-llms-openai
llama-index-vector-stores-chroma
];
pythonImportsCheck = [
"llama_index.cli"
];
}

View File

@ -0,0 +1,115 @@
{ lib
, aiohttp
, buildPythonPackage
, dataclasses-json
, deprecated
, dirtyjson
, fetchFromGitHub
, fsspec
, llamaindex-py-client
, nest-asyncio
, networkx
, nltk
, numpy
, openai
, pandas
, pillow
, poetry-core
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, tree-sitter
, sqlalchemy
, tenacity
, tiktoken
, typing-inspect
}:
buildPythonPackage rec {
pname = "llama-index-core";
version = "0.10.12";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "run-llama";
repo = "llama_index";
rev = "refs/tags/v${version}";
hash = "sha256-Xn4Gqr5zjZGAEHg5duqkS9GLWWlC83puDHNktNYzvDw=";
};
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
dataclasses-json
deprecated
dirtyjson
fsspec
llamaindex-py-client
nest-asyncio
networkx
nltk
numpy
openai
pandas
pillow
pyyaml
requests
sqlalchemy
tenacity
tiktoken
typing-inspect
];
nativeCheckInputs = [
tree-sitter
pytest-asyncio
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"llama_index"
];
disabledTestPaths = [
# Tests require network access
"tests/agent/"
"tests/callbacks/"
"tests/chat_engine/"
"tests/evaluation/"
"tests/indices/"
"tests/ingestion/"
"tests/memory/"
"tests/node_parser/"
"tests/objects/"
"tests/playground/"
"tests/postprocessor/"
"tests/query_engine/"
"tests/question_gen/"
"tests/response_synthesizers/"
"tests/retrievers/"
"tests/selectors/"
"tests/test_utils.py"
"tests/text_splitter/"
"tests/token_predictor/"
"tests/tools/"
];
meta = with lib; {
description = "Data framework for your LLM applications";
homepage = "https://github.com/run-llama/llama_index/";
changelog = "https://github.com/run-llama/llama_index/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, google-generativeai
, llama-index-core
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "llama-index-embeddings-gemini";
version = "0.1.3";
inherit (llama-index-core) src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/embeddings/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
google-generativeai
llama-index-core
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"llama_index.embeddings.gemini"
];
}

View File

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, google-generativeai
, llama-index-core
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-embeddings-google";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/embeddings/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
google-generativeai
llama-index-core
];
pythonImportsCheck = [
"llama_index.embeddings.google"
];
}

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-embeddings-openai";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/embeddings/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
];
pythonImportsCheck = [
"llama_index.embeddings.openai"
];
}

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, llama-index-core
}:
buildPythonPackage rec {
pname = "llama-index-indices-managed-llama-cloud";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/indices/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
];
pythonImportsCheck = [
"llama_index.indices.managed.llama_cloud"
];
}

View File

@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, llama-index-core
}:
buildPythonPackage rec {
pname = "llama-index-legacy";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
];
}

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, llama-index-core
}:
buildPythonPackage rec {
pname = "llama-index-llms-openai";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/llms/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
];
pythonImportsCheck = [
"llama_index.llms.openai"
];
}

View File

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, llama-index-llms-openai
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-multi-modal-llms-openai";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/multi_modal_llms/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
llama-index-llms-openai
];
pythonImportsCheck = [
"llama_index.multi_modal_llms.openai"
];
}

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-agent-openai
, llama-index-core
, llama-index-llms-openai
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-program-openai";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/program/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-agent-openai
llama-index-core
llama-index-llms-openai
];
pythonImportsCheck = [
"llama_index.program.openai"
];
}

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, llama-index-llms-openai
, llama-index-program-openai
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-question-gen-openai";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/question_gen/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
llama-index-llms-openai
llama-index-program-openai
];
pythonImportsCheck = [
"llama_index.question_gen.openai"
];
}

View File

@ -0,0 +1,46 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, poetry-core
, pymupdf
, pypdf
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "llama-index-readers-file";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
pythonRelaxDeps = [
"beautifulsoup4"
"pymupdf"
"pypdf"
];
pythonRemoveDeps = [
"bs4"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
beautifulsoup4
llama-index-core
pymupdf
pypdf
];
pythonImportsCheck = [
"llama_index.readers.file"
];
}

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "llama-index-readers-json";
version = "0.1.2";
inherit (llama-index-core) src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"llama_index.readers.json"
];
}

View File

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, llama-parse
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index-readers-llama-parse";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-parse
llama-index-core
];
pythonImportsCheck = [
"llama_index.readers.llama_parse"
];
}

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, poetry-core
, pyowm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "llama-index-readers-weather";
version = "0.1.4";
inherit (llama-index-core) src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
pyowm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"llama_index.readers.weather"
];
}

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, chromadb
, fetchFromGitHub
, llama-index-core
, onnxruntime
, poetry-core
, pythonRelaxDepsHook
, tokenizers
}:
buildPythonPackage rec {
pname = "llama-index-vector-stores-chroma";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/vector_stores/${pname}";
pythonRelaxDeps = [
"onnxruntime"
"tokenizers"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
chromadb
llama-index-core
onnxruntime
tokenizers
];
pythonImportsCheck = [
"llama_index.vector_stores.chroma"
];
}

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, llama-index-agent-openai
, llama-index-cli
, llama-index-core
, llama-index-embeddings-openai
, llama-index-indices-managed-llama-cloud
, llama-index-legacy
, llama-index-llms-openai
, llama-index-multi-modal-llms-openai
, llama-index-program-openai
, llama-index-question-gen-openai
, llama-index-readers-file
, llama-index-readers-llama-parse
, poetry-core
}:
buildPythonPackage rec {
pname = "llama-index";
inherit (llama-index-core) version src meta;
pyproject = true;
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-agent-openai
llama-index-cli
llama-index-core
llama-index-embeddings-openai
llama-index-indices-managed-llama-cloud
llama-index-legacy
llama-index-llms-openai
llama-index-multi-modal-llms-openai
llama-index-program-openai
llama-index-question-gen-openai
llama-index-readers-file
llama-index-readers-llama-parse
];
pythonImportsCheck = [
"llama_index"
];
}

View File

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, llama-index-core
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "llama-parse";
version = "0.3.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "llama_parse";
inherit version;
hash = "sha256-WjBWnDkKuQidrWbPKoyWf4wh13ZB3uwKkiZy304Wz6M=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
];
pythonImportsCheck = [
"llama_parse"
];
meta = with lib; {
description = "Parse files into RAG-Optimized formats";
homepage = "https://pypi.org/project/llama-parse/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, httpx
, poetry-core
, pydantic
, pythonOlder
}:
buildPythonPackage rec {
pname = "llamaindex-py-client";
version = "0.1.13";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "llamaindex_py_client";
inherit version;
hash = "sha256-O9m0Ne4KeBceukEt6lZ02BPrW/NuV308fH6Q7cVJANk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
httpx
pydantic
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"llama_index_client"
];
meta = with lib; {
description = "Client for LlamaIndex";
homepage = "https://pypi.org/project/llamaindex-py-client/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,27 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
version = "1.5.6";
pname = "nest_asyncio";
disabled = !(pythonAtLeast "3.5");
pname = "nest-asyncio";
version = "1.6.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-0mfMH/eUQD999pKWTR0qP6lBj/6io/aFmkOf9IL+8pA=";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "erdewit";
repo = "nest_asyncio";
rev = "refs/tags/v${version}";
hash = "sha256-5I5WItOl1QpyI4OXZgZf8GiQ7Jlo+SJbDicIbernaU4=";
};
# tests not packaged with source dist as of 1.3.2/1.3.2, and
# can't check tests out of GitHub easily without specific commit IDs (no tagged releases)
doCheck = false;
pythonImportsCheck = [ "nest_asyncio" ];
nativeBuildInputs = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"nest_asyncio"
];
meta = with lib; {
description = "Patch asyncio to allow nested event loops";
homepage = "https://github.com/erdewit/nest_asyncio";
changelog = "https://github.com/erdewit/nest_asyncio/releases/tag/v${version}";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ ];
};

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fastapi
, hatchling
, httpx
, opentelemetry-api
, opentelemetry-instrumentation
, opentelemetry-instrumentation-asgi
, opentelemetry-semantic-conventions
, opentelemetry-test-utils
, opentelemetry-util-http
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-fastapi";
pyproject = true;
disabled = pythonOlder "3.7";
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-fastapi";
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
fastapi
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-instrumentation-asgi
opentelemetry-semantic-conventions
opentelemetry-util-http
];
nativeCheckInputs = [
httpx
opentelemetry-test-utils
pytestCheckHook
requests
];
pythonImportsCheck = [
"opentelemetry.instrumentation.fastapi"
];
meta = opentelemetry-instrumentation.meta // {
description = "OpenTelemetry Instrumentation for fastapi";
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-fastapi";
};
}

View File

@ -0,0 +1,119 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, python
}:
let
version = "3.4.0";
inherit (python) pythonVersion;
Srcs =
let
getSrcFromPypi = { platform, dist, hash }: fetchPypi {
inherit version platform dist hash;
pname = "pulsar_client";
format = "wheel";
python = dist;
abi = dist;
};
in
{
"3.9-x86_64-linux" = getSrcFromPypi {
platform = "manylinux_2_17_x86_64.manylinux2014_x86_64";
dist = "cp39";
hash = "sha256-1P5ArMoLZiUkHUoQ/mJccbNj5/7el/op+Qo6cGQ33xE=";
};
"3.9-aarch64-linux" = getSrcFromPypi {
platform = "manylinux_2_17_aarch64.manylinux2014_aarch64";
dist = "cp39";
hash = "sha256-11JQZRwMLtt7sK/JlCBqqRyfTVIAVJFN2sL+nAkQgvU=";
};
"3.9-aarch64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp39";
hash = "sha256-dwTGZKosgBr0wtOljp2P+u7xLOig9xcS6Rh/mpbahW8=";
};
"3.9-x86_64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp39";
hash = "sha256-dwTGZKosgBr0wtOljp2P+u7xLOig9xcS6Rh/mpbahW8=";
};
"3.10-x86_64-linux" = getSrcFromPypi {
platform = "manylinux_2_17_x86_64.manylinux2014_x86_64";
dist = "cp310";
hash = "sha256-swp1kuQsdgNOmo1k1C3VurNhQl+GneVi6cytaY4ZzYg=";
};
"3.10-aarch64-linux" = getSrcFromPypi {
platform = "musllinux_1_1_aarch64";
dist = "cp310";
hash = "sha256-1ZYwkKeKVkS6JfQdo6bUnqPwDJcrCVuv82WRbcJGQmo=";
};
"3.10-aarch64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp310";
hash = "sha256-6/mdtSRP9pR5KDslYhsHBJKsxLtkPRYthrkDh8tv2yo=";
};
"3.10-x86_64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp310";
hash = "sha256-6/mdtSRP9pR5KDslYhsHBJKsxLtkPRYthrkDh8tv2yo=";
};
"3.11-x86_64-linux" = getSrcFromPypi {
platform = "manylinux_2_17_x86_64.manylinux2014_x86_64";
dist = "cp311";
hash = "sha256-M1cd6ZzYmDSfF5eLpi4rg56gJ1+3Bn8xv19uv+rgmH0=";
};
"3.11-aarch64-linux" = getSrcFromPypi {
platform = "manylinux_2_17_aarch64.manylinux2014_aarch64";
dist = "cp311";
hash = "sha256-+HQ8MgqpZ5jSDK+pjql6aMQpX8SHLCOs1eAS/TbLBro=";
};
"3.11-aarch64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp311";
hash = "sha256-EZUvsCLuct6/U7Fp9EgvncXIkL4BSa6Yd5hks6IfG9M=";
};
"3.11-x86_64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp311";
hash = "sha256-EZUvsCLuct6/U7Fp9EgvncXIkL4BSa6Yd5hks6IfG9M=";
};
"3.12-x86_64-linux" = getSrcFromPypi {
platform = "manylinux_2_17_x86_64.manylinux2014_x86_64";
dist = "cp312";
hash = "sha256-xgbATzVzQQQvpsdUd959IgT3rlCqKcL3SyTlTIX0f5Y=";
};
"3.12-aarch64-linux" = getSrcFromPypi {
platform = "manylinux_2_17_aarch64.manylinux2014_aarch64";
dist = "cp312";
hash = "sha256-8gK4Th9oPWRnLdGXERRgCuLlw3NVhyhv+b+0MThfCOg=";
};
"3.12-aarch64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp312";
hash = "sha256-9/jw/wr1oUD9pOadVAaMRL081iVMUXwVgnUMcG1UNvE=";
};
"3.12-x86_64-darwin" = getSrcFromPypi {
platform = "macosx_10_15_universal2";
dist = "cp312";
hash = "sha256-9/jw/wr1oUD9pOadVAaMRL081iVMUXwVgnUMcG1UNvE=";
};
};
in buildPythonPackage {
pname = "pulsar-client";
inherit version;
format = "wheel";
src = Srcs."${pythonVersion}-${stdenv.hostPlatform.system}";
meta = with lib; {
description = "Client for pulsar";
homepage = "https://pypi.org/project/pulsar-client/";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2061,6 +2061,10 @@ self: super: with self; {
chispa = callPackage ../development/python-modules/chispa { };
chroma-hnswlib = callPackage ../development/python-modules/chroma-hnswlib { };
chromadb = callPackage ../development/python-modules/chromadb { };
chromaprint = callPackage ../development/python-modules/chromaprint { };
ci-info = callPackage ../development/python-modules/ci-info { };
@ -2922,6 +2926,8 @@ self: super: with self; {
dirty-equals = callPackage ../development/python-modules/dirty-equals { };
dirtyjson = callPackage ../development/python-modules/dirtyjson { };
discid = callPackage ../development/python-modules/discid { };
discogs-client = callPackage ../development/python-modules/discogs-client { };
@ -6670,6 +6676,46 @@ self: super: with self; {
lizard = callPackage ../development/python-modules/lizard { };
llama-index = callPackage ../development/python-modules/llama-index { };
llama-index-agent-openai = callPackage ../development/python-modules/llama-index-agent-openai { };
llama-index-cli = callPackage ../development/python-modules/llama-index-cli { };
llama-index-core = callPackage ../development/python-modules/llama-index-core { };
llama-index-embeddings-gemini = callPackage ../development/python-modules/llama-index-embeddings-gemini { };
llama-index-embeddings-google = callPackage ../development/python-modules/llama-index-embeddings-google { };
llama-index-embeddings-openai = callPackage ../development/python-modules/llama-index-embeddings-openai { };
llama-index-indices-managed-llama-cloud = callPackage ../development/python-modules/llama-index-indices-managed-llama-cloud { };
llama-index-legacy = callPackage ../development/python-modules/llama-index-legacy { };
llama-index-llms-openai = callPackage ../development/python-modules/llama-index-llms-openai { };
llama-index-multi-modal-llms-openai = callPackage ../development/python-modules/llama-index-multi-modal-llms-openai { };
llama-index-program-openai = callPackage ../development/python-modules/llama-index-program-openai { };
llama-index-question-gen-openai = callPackage ../development/python-modules/llama-index-question-gen-openai { };
llama-index-readers-file = callPackage ../development/python-modules/llama-index-readers-file { };
llama-index-readers-json = callPackage ../development/python-modules/llama-index-readers-json { };
llama-index-readers-llama-parse = callPackage ../development/python-modules/llama-index-readers-llama-parse { };
llama-index-readers-weather = callPackage ../development/python-modules/llama-index-readers-weather { };
llama-index-vector-stores-chroma = callPackage ../development/python-modules/llama-index-vector-stores-chroma { };
llama-parse = callPackage ../development/python-modules/llama-parse { };
llamaindex-py-client = callPackage ../development/python-modules/llamaindex-py-client { };
llfuse = callPackage ../development/python-modules/llfuse {
inherit (pkgs) fuse;
};
@ -8887,6 +8933,8 @@ self: super: with self; {
opentelemetry-instrumentation-django = callPackage ../development/python-modules/opentelemetry-instrumentation-django { };
opentelemetry-instrumentation-fastapi = callPackage ../development/python-modules/opentelemetry-instrumentation-fastapi { };
opentelemetry-instrumentation-flask = callPackage ../development/python-modules/opentelemetry-instrumentation-flask { };
opentelemetry-instrumentation-grpc = callPackage ../development/python-modules/opentelemetry-instrumentation-grpc { };
@ -10091,6 +10139,8 @@ self: super: with self; {
pulp = callPackage ../development/python-modules/pulp { };
pulsar-client = callPackage ../development/python-modules/pulsar-client { };
pulsectl-asyncio = callPackage ../development/python-modules/pulsectl-asyncio { };
pulsectl = callPackage ../development/python-modules/pulsectl { };