16 buildPythonPackage rec {
17 pname = "clip-anytorch";
21 disabled = pythonOlder "3.10";
23 src = fetchFromGitHub {
26 rev = "refs/tags/${version}";
27 hash = "sha256-4A8R9aEiOWC05uhMQslhVSkQ4hyjs6VsqkFi76miodY=";
31 # Import packaging to be compatible with setuptools==70.0.0, https://github.com/rom1504/CLIP/pull/10
33 name = "setuptools-comp.patch";
34 url = "https://github.com/rom1504/CLIP/pull/10/commits/8137d899035d889623f6b0a0a0faae88c549dc50.patch";
35 hash = "sha256-CIcuDk4QH+0g8YEa6TbKGjIcKJQqFviymVH68sKmsyk=";
39 build-system = [ setuptools ];
50 pythonImportsCheck = [ "clip" ];
52 # All tests require network access
56 description = "Contrastive Language-Image Pretraining";
57 homepage = "https://github.com/rom1504/CLIP";
58 license = licenses.mit;
59 maintainers = teams.tts.members;