Files
nixpkgs/pkgs/development/python-modules/clip/default.nix
Michael Mussato 1c7937c08b pyhon3Packages.clip: fix build
Fix build by adding standard-pkg-resources as dependency, also fix the
version string.
2026-11-14 13:43:35 +01:00

46 lines
823 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
ftfy,
lib,
regex,
setuptools,
torch,
torchvision,
tqdm,
standard-pkg-resources,
}:
buildPythonPackage {
pname = "clip";
version = "1.0-unstable-2026-03-25";
pyproject = true;
src = fetchFromGitHub {
owner = "openai";
repo = "clip";
rev = "d50d76daa670286dd6cacf3bcd80b5e4823fc8e1";
hash = "sha256-GAitNBb5CzFVv2+Dky0VqSdrFIpKKtoAoyqeLoDaHO4=";
};
build-system = [ setuptools ];
dependencies = [
ftfy
regex
torch
torchvision
tqdm
standard-pkg-resources
];
pythonImportsCheck = [ "clip" ];
meta = {
description = "Contrastive Language-Image Pretraining";
homepage = "https://github.com/openai/CLIP";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ samuela ];
};
}