567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
732 B
Nix
41 lines
732 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
ftfy,
|
|
lib,
|
|
regex,
|
|
torch,
|
|
torchvision,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "clip";
|
|
version = "unstable-2022-11-17";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openai";
|
|
repo = "clip";
|
|
rev = "d50d76daa670286dd6cacf3bcd80b5e4823fc8e1";
|
|
hash = "sha256-GAitNBb5CzFVv2+Dky0VqSdrFIpKKtoAoyqeLoDaHO4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ftfy
|
|
regex
|
|
torch
|
|
torchvision
|
|
tqdm
|
|
];
|
|
|
|
pythonImportsCheck = [ "clip" ];
|
|
|
|
meta = {
|
|
description = "Contrastive Language-Image Pretraining";
|
|
homepage = "https://github.com/openai/CLIP";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ samuela ];
|
|
};
|
|
}
|