Commit 8b5ca664 authored by happysalada's avatar happysalada Committed by Yt
Browse files

chatgpt-retrieval-plugin: init at unstable-2023-03-28

parent e58b3b8c
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi, pycryptodomex, filelock, urllib3, lxml }:

buildPythonPackage rec {
  pname = "blobfile";
  version = "2.0.1";
  format = "wheel";

  src = fetchPypi {
    inherit pname version;
    format = "wheel";
    python = "py3";
    dist = "py3";
    hash = "sha256-b1Gz6UjzCpLnNKl0sk/ND2pRhB/Qg96WiJkjFIE1jaI=";
  };

  propagatedBuildInputs = [ pycryptodomex filelock urllib3 lxml ];

  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/christopher-hesse/blobfile";
    description = "Read Google Cloud Storage, Azure Blobs, and local paths with the same interface ";
    license = licenses.mit;
    maintainers = with maintainers; [ happysalada ];
  };
}
+43 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, pyyaml
, python-dateutil
, urllib3
, tqdm
, dnspython
, requests
, typing-extensions
, loguru
}:
buildPythonPackage rec {
  pname = "pinecone-client";
  version = "2.2.1";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-CHjcruRHxGyNGz1xyFRonap+VI5QCaFxeAkHx9TnR4k=";
  };

  propagatedBuildInputs = [
    numpy
    pyyaml
    python-dateutil
    urllib3
    tqdm
    dnspython
    requests
    typing-extensions
    loguru
  ];

  doCheck = false;

  meta = with lib; {
    homepage = "https://www.pinecone.io/";
    description = "The Pinecone python client";
    license = licenses.mit;
    maintainers = with maintainers; [happysalada];
  };
}
+46 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, grpcio-tools
, ujson
, grpcio
, pandas
, mmh3
, setuptools-scm
}:
buildPythonPackage rec {
  pname = "pymilvus";
  version = "2.2.4";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-gj+psVoS6vcM4bNWzpwvKJJETTeCmZe6RwlzDkcvWo8=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "grpcio-tools>=1.47.0, <=1.48.0" "grpcio-tools>=1.47.0, <=1.52.0" \
      --replace "grpcio>=1.47.0,<=1.48.0" "grpcio>=1.47.0,<=1.53.0" \
      --replace "ujson>=2.0.0,<=5.4.0" "ujson>=2.0.0,<=5.7.0"
    '';

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  propagatedBuildInputs = [
    grpcio
    grpcio-tools
    ujson
    pandas
    mmh3
  ] ++ lib.optionals stdenv.isLinux [ setuptools-scm ];

  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/milvus-io/pymilvus";
    description = "Python SDK for Milvus. ";
    license = licenses.mit;
    maintainers = with maintainers; [happysalada];
  };
}
+38 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, lxml
, xlsxwriter
, pillow
}:
buildPythonPackage rec {
  pname = "python-pptx";
  version = "0.6.21";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-d5iiqviVY1ZbPHEgwKz+mv93XbDbNYBUTjv0hAwuN48=";
  };

  # postPatch = ''
  #   substituteInPlace setup.py \
  #     --replace "grpcio-tools>=1.47.0, <=1.48.0" "grpcio-tools>=1.47.0, <=1.52.0" \
  #     --replace "grpcio>=1.47.0,<=1.48.0" "grpcio>=1.47.0,<=1.53.0" \
  #     --replace "ujson>=2.0.0,<=5.4.0" "ujson>=2.0.0,<=5.7.0"
  #   '';

  propagatedBuildInputs = [
    lxml
    xlsxwriter
    pillow
  ];

  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/scanny/python-pptx";
    description = "Create Open XML PowerPoint documents in Python";
    license = licenses.mit;
    maintainers = with maintainers; [happysalada];
  };
}
+35 −0
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi, python3Packages, numpy, httpx, grpcio, typing-extensions, grpcio-tools, pydantic, urllib3, h2 }:

buildPythonPackage rec {
  pname = "qdrant-client";
  version = "1.1.0";

  src = fetchPypi {
    pname = "qdrant_client";
    inherit version;
    hash = "sha256-tiWPQXjYkUM77rgKYbQG4jdi9c/I2WTMq5y+9zLax/0=";
  };

  format = "pyproject";

  nativeBuildInputs = with python3Packages; [
    poetry-core
  ];


  # postPatch = ''
  #   substituteInPlace setup.cfg \
  #     --replace "validators>=0.18.2,<0.20.0" "validators>=0.18.2,<0.21.0"
  # '';

  propagatedBuildInputs = [ numpy httpx grpcio typing-extensions grpcio-tools pydantic urllib3 h2 ];

  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/qdrant/qdrant-client";
    description = "Python client for Qdrant vector search engine";
    license = licenses.mit;
    maintainers = with maintainers; [ happysalada ];
  };
}
Loading