Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
734 B · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ 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 = with lib; { description = "Contrastive Language-Image Pretraining"; homepage = "https://github.com/openai/CLIP"; license = licenses.mit; maintainers = with maintainers; [ samuela ]; };}