ps3-disc-dumper: 3.2.3 -> 4.2.5, .NET 6 -> 9 (#361506)
[NixPkgs.git] / pkgs / development / python-modules / clip / default.nix
blobe5b193c9caa15c1257ecb1b918cc46f53d32793f
2   buildPythonPackage,
3   fetchFromGitHub,
4   ftfy,
5   lib,
6   regex,
7   torch,
8   torchvision,
9   tqdm,
12 buildPythonPackage rec {
13   pname = "clip";
14   version = "unstable-2022-11-17";
15   format = "setuptools";
17   src = fetchFromGitHub {
18     owner = "openai";
19     repo = pname;
20     rev = "d50d76daa670286dd6cacf3bcd80b5e4823fc8e1";
21     hash = "sha256-GAitNBb5CzFVv2+Dky0VqSdrFIpKKtoAoyqeLoDaHO4=";
22   };
24   propagatedBuildInputs = [
25     ftfy
26     regex
27     torch
28     torchvision
29     tqdm
30   ];
32   pythonImportsCheck = [ "clip" ];
34   meta = with lib; {
35     description = "Contrastive Language-Image Pretraining";
36     homepage = "https://github.com/openai/CLIP";
37     license = licenses.mit;
38     maintainers = with maintainers; [ samuela ];
39   };