Unverified Commit 77707d80 authored by natsukium's avatar natsukium
Browse files

openllm: move to top-level

parent 56914268
Loading
Loading
Loading
Loading
+19 −20
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatch-vcs,
  hatchling,
  pythonOlder,
  accelerate,
  bentoml,
  dulwich,
  nvidia-ml-py,
  openai,
  psutil,
  pyaml,
  questionary,
  tabulate,
  typer,
  uv,
  python3,
}:
let
  python = python3.override {
    self = python;
    packageOverrides = _: super: {
      cattrs = super.cattrs.overridePythonAttrs (oldAttrs: rec {
        version = "23.1.2";
        build-system = [ super.poetry-core ];
        src = oldAttrs.src.override {
          rev = "refs/tags/v${version}";
          hash = "sha256-YO4Clbo5fmXbysxwwM2qCHJwO5KwDC05VctRVFruJcw=";
        };
      });
    };
  };
in

buildPythonPackage rec {
python.pkgs.buildPythonApplication rec {
  pname = "openllm";
  version = "0.6.10";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "bentoml";
    repo = "openllm";
@@ -39,12 +38,12 @@ buildPythonPackage rec {

  pythonRelaxDeps = [ "openai" ];

  build-system = [
  build-system = with python.pkgs; [
    hatch-vcs
    hatchling
  ];

  dependencies = [
  dependencies = with python.pkgs; [
    accelerate
    bentoml
    dulwich
+1 −0
Original line number Diff line number Diff line
@@ -354,6 +354,7 @@ mapAliases ({
  openai-triton-no-cuda = triton-no-cuda; # added 2024-07-18
  openapi-schema-pydantic = throw "openapi-schema-pydantic has been removed, since it is no longer maintained"; # added 2023-10-30
  opencv3 = throw "opencv3 has been removed as it is obsolete"; # added 2023-10-12
  openllm = throw "openllm has moved to pkgs.openllm"; # added 2021-12-31
  openllm-client = throw "openllm-client has been removed, since it is abandoned due to a change in philosophy"; # added 2024-08-24
  openllm-core = throw "openllm-core has been removed, since it is abandoned due to a change in philosophy"; # added 2024-08-24
  opsdroid_get_image_size = opsdroid-get-image-size; # added 2023-10-16
+0 −2
Original line number Diff line number Diff line
@@ -4651,8 +4651,6 @@ self: super: with self; {
  oelint-parser = callPackage ../development/python-modules/oelint-parser { };
  openllm = callPackage ../development/python-modules/openllm { };
  openstep-parser = callPackage ../development/python-modules/openstep-parser { };
  openstep-plist = callPackage ../development/python-modules/openstep-plist { };