2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiofiles,
|
|
|
|
aiosqlite,
|
|
|
|
alembic,
|
|
|
|
asyncpg,
|
|
|
|
backoff,
|
|
|
|
brotli-asgi,
|
|
|
|
buildPythonPackage,
|
|
|
|
cleanlab,
|
|
|
|
datasets,
|
|
|
|
deprecated,
|
|
|
|
elasticsearch8,
|
|
|
|
evaluate,
|
|
|
|
factory-boy,
|
|
|
|
faiss,
|
|
|
|
fastapi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flyingsquid,
|
|
|
|
greenlet,
|
|
|
|
httpx,
|
|
|
|
huggingface-hub,
|
|
|
|
luqum,
|
|
|
|
monotonic,
|
|
|
|
numpy,
|
|
|
|
openai,
|
|
|
|
opensearch-py,
|
|
|
|
packaging,
|
|
|
|
pandas,
|
|
|
|
passlib,
|
|
|
|
peft,
|
|
|
|
pgmpy,
|
|
|
|
plotly,
|
|
|
|
prodict,
|
|
|
|
psutil,
|
|
|
|
psycopg2,
|
|
|
|
pydantic,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-jose,
|
|
|
|
python-multipart,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
pyyaml,
|
|
|
|
rich,
|
|
|
|
schedule,
|
|
|
|
scikit-learn,
|
|
|
|
sentence-transformers,
|
|
|
|
seqeval,
|
|
|
|
setuptools,
|
|
|
|
smart-open,
|
|
|
|
snorkel,
|
|
|
|
spacy,
|
|
|
|
spacy-transformers,
|
|
|
|
sqlalchemy,
|
|
|
|
tqdm,
|
|
|
|
transformers,
|
|
|
|
typer,
|
|
|
|
uvicorn,
|
|
|
|
wrapt,
|
2023-07-15 17:15:38 +00:00
|
|
|
# , flair
|
|
|
|
# , setfit
|
2024-05-15 15:35:15 +00:00
|
|
|
# , spacy-huggingface-hub
|
2023-07-15 17:15:38 +00:00
|
|
|
# , span_marker
|
2024-05-15 15:35:15 +00:00
|
|
|
# , trl
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "argilla";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.28.0";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "argilla-io";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "argilla";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-gQpJ2umi3IE5BhRu3bM7ONPIP0hb2YG37jGvDKQHZWA=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-05-15 15:35:15 +00:00
|
|
|
"httpx"
|
2023-07-15 17:15:38 +00:00
|
|
|
"numpy"
|
2024-05-15 15:35:15 +00:00
|
|
|
"rich"
|
|
|
|
"typer"
|
|
|
|
"wrapt"
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
httpx
|
|
|
|
deprecated
|
|
|
|
packaging
|
|
|
|
pandas
|
|
|
|
pydantic
|
|
|
|
wrapt
|
|
|
|
numpy
|
|
|
|
tqdm
|
|
|
|
backoff
|
|
|
|
monotonic
|
|
|
|
rich
|
|
|
|
typer
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
server =
|
|
|
|
[
|
|
|
|
aiofiles
|
|
|
|
aiosqlite
|
|
|
|
alembic
|
|
|
|
brotli-asgi
|
|
|
|
elasticsearch8
|
|
|
|
fastapi
|
|
|
|
greenlet
|
|
|
|
luqum
|
|
|
|
opensearch-py
|
|
|
|
passlib
|
|
|
|
psutil
|
|
|
|
python-jose
|
|
|
|
python-multipart
|
|
|
|
pyyaml
|
|
|
|
scikit-learn
|
|
|
|
smart-open
|
|
|
|
sqlalchemy
|
|
|
|
uvicorn
|
|
|
|
]
|
|
|
|
++ elasticsearch8.optional-dependencies.async
|
|
|
|
++ uvicorn.optional-dependencies.standard
|
|
|
|
++ python-jose.optional-dependencies.cryptography
|
|
|
|
++ passlib.optional-dependencies.bcrypt;
|
|
|
|
postgresql = [
|
|
|
|
asyncpg
|
|
|
|
psycopg2
|
|
|
|
];
|
|
|
|
listeners = [
|
|
|
|
schedule
|
|
|
|
prodict
|
|
|
|
];
|
|
|
|
integrations = [
|
|
|
|
cleanlab
|
|
|
|
datasets
|
|
|
|
evaluate
|
|
|
|
faiss
|
|
|
|
flyingsquid
|
|
|
|
huggingface-hub
|
|
|
|
openai
|
|
|
|
peft
|
|
|
|
pgmpy
|
|
|
|
plotly
|
|
|
|
pyyaml
|
|
|
|
sentence-transformers
|
|
|
|
seqeval
|
|
|
|
snorkel
|
|
|
|
spacy
|
|
|
|
spacy-transformers
|
|
|
|
transformers
|
|
|
|
# flair
|
|
|
|
# setfit
|
|
|
|
# span_marker
|
|
|
|
# trl
|
|
|
|
# spacy-huggingface-hub
|
|
|
|
] ++ transformers.optional-dependencies.torch;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Still quite a bit of optional dependencies missing
|
2023-07-15 17:15:38 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
pytest-asyncio
|
2023-10-19 13:55:26 +00:00
|
|
|
factory-boy
|
2024-05-15 15:35:15 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabledTestPaths = [ "tests/server/datasets/test_dao.py" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
description = "Open-source data curation platform for LLMs";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/argilla-io/argilla";
|
|
|
|
changelog = "https://github.com/argilla-io/argilla/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "argilla";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|