Skip to content

Commit

Permalink
overrides: add open-clip-torch
Browse files Browse the repository at this point in the history
  • Loading branch information
cheriimoya committed Oct 2, 2024
1 parent 62bde23 commit 1cc00ec
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1982,6 +1982,30 @@ lib.composeManyExtensions [
}
);

open-clip-torch = prev.open-clip-torch.overridePythonAttrs (
# The sdist from pypi doesn't contain the requirements.txt
old:
lib.optionalAttrs (!(old.src.isWheel or false)) (
let
githubHash =
{
"2.20.0" = "sha256-Ca4oi2LqleIFAGBJB7YIi4nXe2XhOP6ErDFXgXtJLxM=";
}
.${old.version} or lib.fakeHash;

src = pkgs.fetchFromGitHub {
owner = "mlfoundations";
repo = "open_clip";
rev = "v${old.version}";
sha256 = githubHash;
};
in
{
inherit src;
}
)
);

orjson = prev.orjson.overridePythonAttrs (
old: lib.optionalAttrs (!(old.src.isWheel or false)) (
let
Expand Down

0 comments on commit 1cc00ec

Please sign in to comment.