Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.1 kB · 104 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105{ lib, buildPythonPackage, clarifai-grpc, fetchFromGitHub, inquirerpy, llama-index-core, numpy, opencv4, pandas, pillow, pycocotools, pypdf, pytestCheckHook, pythonOlder, pythonRelaxDepsHook, pyyaml, rich, schema, setuptools, tabulate, tqdm, tritonclient,}:
buildPythonPackage rec { pname = "clarifai"; version = "10.3.3"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "Clarifai"; repo = "clarifai-python"; rev = "refs/tags/${version}"; hash = "sha256-M0OrBqjNjrpxVM/A7NVqarcP8S+VqunYGI4C+Wis6UI="; };
pythonRelaxDeps = [ "clarifai-grpc" ];
pythonRemoveDeps = [ "opencv-python" ];
build-system = [ setuptools ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [ clarifai-grpc inquirerpy llama-index-core numpy opencv4 pandas pillow pypdf pyyaml rich schema tabulate tqdm tritonclient ];
passthru.optional-dependencies = { all = [ pycocotools ]; };
nativeCheckInputs = [ pytestCheckHook ];
preCheck = '' export HOME=$(mktemp -d) '';
disabledTests = [ # Test requires network access and API key "test_export_workflow_general" ];
disabledTestPaths = [ # Tests require network access and API key "tests/test_app.py" "tests/test_data_upload.py" "tests/test_eval.py" "tests/test_model_predict.py" "tests/test_model_train.py" "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" ];
meta = with lib; { description = "Clarifai Python Utilities"; homepage = "https://github.com/Clarifai/clarifai-python"; changelog = "https://github.com/Clarifai/clarifai-python/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ natsukium ]; mainProgram = "clarifai"; };}