Commit 25eb426e authored by Ihar Hrachyshka's avatar Ihar Hrachyshka
Browse files

python3Packages.llama-cpp-python: 0.3.9 -> 0.3.12

Also fixed update script to ignore -{metal,cu*} tags.
parent 1bdf3ad8
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -39,14 +39,14 @@ let
in
buildPythonPackage rec {
  pname = "llama-cpp-python";
  version = "0.3.9";
  version = "0.3.12";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "abetlen";
    repo = "llama-cpp-python";
    tag = "v${version}";
    hash = "sha256-iw9teWZ612gUNM2Zm5WGdFTq7aNo8QRRIGeHoFpXdfQ=";
    hash = "sha256-TTGweGfav1uI2+87iUYc1Esmuor9sEZdZqSU2YVPCdQ=";
    fetchSubmodules = true;
  };
  # src = /home/gaetan/llama-cpp-python;
@@ -118,7 +118,10 @@ buildPythonPackage rec {
  pythonImportsCheck = [ "llama_cpp" ];

  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
    updateScript = gitUpdater {
      rev-prefix = "v";
      allowedVersions = "^[.0-9]+$";
    };
    tests = lib.optionalAttrs stdenvTarget.hostPlatform.isLinux {
      withCuda = llama-cpp-python.override {
        cudaSupport = true;