Unverified Commit 1332e5e7 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

ramalama: 0.17.1 -> 0.18.0 (#504234)

parents 70705496 3af49c40
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  python3Packages,
  fetchFromGitHub,
  fetchpatch,
  go-md2man,

  llama-cpp-vulkan,
@@ -15,14 +16,14 @@

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "ramalama";
  version = "0.17.1";
  version = "0.18.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "containers";
    repo = "ramalama";
    tag = "v${finalAttrs.version}";
    hash = "sha256-BXUWNP3yxuDsL1gY28oWhlu+vTIezYpDbScUsOulyYA=";
    hash = "sha256-AqX8pNbeDPCxlwaSJg4+XVrfypvXGR77q8tkI7t3vTY=";
  };

  build-system = with python3Packages; [
@@ -42,6 +43,14 @@ python3Packages.buildPythonApplication (finalAttrs: {
    go-md2man
  ];

  patches = [
    # fix darwin tests: https://github.com/containers/ramalama/pull/2567
    (fetchpatch {
      url = "https://github.com/containers/ramalama/commit/2b51b749b706261a5f704b4d785dbd45447b14b6.patch";
      hash = "sha256-HV7gn0W7b0P7OS53Js5JdHoFjvE7tO4e3RMReGZpRIo=";
    })
  ];

  postPatch = ''
    substituteInPlace ramalama/config.py --replace-fail "{sys.prefix}" "$out"
  '';