Unverified Commit b68ab83a authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #299768 from fabaff/llama-index-integrations

python312Packages.llama-index-embeddings-ollama: init at 0.1.2
parents 7e569744 c0666485
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
, sniffio
}:

buildPythonPackage rec {
  pname = "asgi-lifespan";
  version = "2.1.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "florimondmanca";
    repo = "asgi-lifespan";
    rev = "refs/tags/${version}";
    hash = "sha256-Jgmd/4c1lxHM/qi3MJNN1aSSUJrI7CRNwwHrFwwcCkc=";
  };

  postPatch = ''
    sed -i "/--cov/d" setup.cfg
  '';

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    sniffio
  ];

  # Circular dependencies, starlette
  doCheck = false;

  pythonImportsCheck = [
    "asgi_lifespan"
  ];

  meta = with lib; {
    description = "Programmatic startup/shutdown of ASGI apps";
    homepage = "https://github.com/florimondmanca/asgi-lifespan";
    changelog = "https://github.com/florimondmanca/asgi-lifespan/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, llama-index-core
, poetry-core
, pythonOlder
, sentence-transformers
}:

buildPythonPackage rec {
  pname = "llama-index-embeddings-huggingface";
  version = "0.2.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "llama_index_embeddings_huggingface";
    inherit version;
    hash = "sha256-3PCplFXzfE4aL91c1lyd0aRRu4aMP4DDNcTQybadAHE=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    llama-index-core
    sentence-transformers
  ];

  # Tests are only available in the mono repo
  doCheck = false;

  pythonImportsCheck = [
    "llama_index.embeddings.huggingface"
  ];

  meta = with lib; {
    description = "LlamaIndex Embeddings Integration for Huggingface";
    homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/embeddings/llama-index-embeddings-huggingface";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, google-generativeai
, llama-index-core
, poetry-core
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "llama-index-embeddings-ollama";
  version = "0.1.2";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    pname = "llama_index_embeddings_ollama";
    inherit version;
    hash = "sha256-qeCAm93S5K2IjySVGe3H49M5x05OA/xaQMMGDcQdR6k=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    llama-index-core
  ];

  # Tests are only available in the mono repo
  doCheck = false;

  pythonImportsCheck = [
    "llama_index.embeddings.ollama"
  ];

  meta = with lib; {
    description = "LlamaIndex Llms Integration for Ollama";
    homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/embeddings/llama-index-embeddings-ollama";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+42 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, llama-index-core
, nebula3-python
, poetry-core
, pythonOlder
}:

buildPythonPackage rec {
  pname = "llama-index-graph-stores-nebula";
  version = "0.1.2";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "llama_index_graph_stores_nebula";
    inherit version;
    hash = "sha256-Xb/0ogj2NlGV4MGC9Be54d/JfalT40jtAe6LOPO1u/8=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    llama-index-core
    nebula3-python
  ];

  pythonImportsCheck = [
    "llama_index.graph_stores.nebula"
  ];

  meta = with lib; {
    description = "LlamaIndex Graph Store Integration for Nebula";
    homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/graph_stores/llama-index-graph-stores-nebula";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+42 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, neo4j
, llama-index-core
, poetry-core
, pythonOlder
}:

buildPythonPackage rec {
  pname = "llama-index-graph-stores-neo4j";
  version = "0.1.3";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "llama_index_graph_stores_neo4j";
    inherit version;
    hash = "sha256-AUWezvdONxz5H42VpTjh7NrBkTdWjtBJyMvA8kSh5w4=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    neo4j
    llama-index-core
  ];

  pythonImportsCheck = [
    "llama_index.graph_stores.neo4j"
  ];

  meta = with lib; {
    description = "LlamaIndex Graph Store Integration for Neo4j";
    homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
Loading